Optimized implementation of 16-bit unsigned saturation.
(unsigned-saturate16 x) → *
Function:
(defun unsigned-saturate16$inline (x) (declare (xargs :guard (integerp x))) (let ((__function__ 'unsigned-saturate16)) (declare (ignorable __function__)) (mbe :logic (unsigned-saturate-fn 16 x) :exec (cond ((>= x 65535) 65535) ((<= x 0) 0) (t x)))))