Avoid C-isms #5
Loading…
Reference in a new issue
No description provided.
Delete branch "avoid-c-isms"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using
ldb/dpb
instead of shifting bits and adding 'numbers' is not only more direct but also generates more efficient code in SBCL. This is not the case in all implementations. For example ECL will still compile to code that does more or less the name (ash + ecl_boole). I also refactored common code so that we only need to specify the number of octets to decode or decode and the decoder is derived for us as well as leaving some constants 'unfolded' so that their meaning is more apparent but moving the computation to read-time so the resulting code stays the same.Thanks @PuercoPop