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