-
-
Save jasom/dbe98cb860442c481c9e4cc5b6da8b69 to your computer and use it in GitHub Desktop.
Fixnum limited version of mask-signed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun mask-signed-2 (x size) | |
(declare (type fixnum x) | |
(type (integer 1 63) size) | |
(optimize (speed 3))) | |
(logior x (- (mask-field (byte 1 (1- size)) x)))) |
Author
jasom
commented
Mar 15, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment