(rotate-right-16 x places) → *
Function:
(defun rotate-right-16$inline (x places) (declare (type (unsigned-byte 16) x) (type (unsigned-byte 16) places)) (let ((__function__ 'rotate-right-16)) (declare (ignorable __function__)) (mbe :logic (rotate-right x 16 places) :exec (let* ((x (mbe :logic (loghead 16 x) :exec x)) (places (mbe :logic (lnfix places) :exec places)) (places (if (< places 16) (the (integer 0 15) places) (the (integer 0 15) (rem places 16)))) (mask (the (unsigned-byte 16) (1- (the (unsigned-byte 16) (ash 1 places))))) (xl (the (unsigned-byte 16) (logand x mask))) (xh-shift (the (unsigned-byte 16) (ash x (the (integer -16 0) (- places))))) (high-num (the (integer 0 16) (- 16 places))) (xl-shift (the (unsigned-byte 16) (ash xl high-num))) (ans (the (unsigned-byte 16) (logior xl-shift xh-shift)))) ans))))