Skip to content

Commit

Permalink
ieee754: optimize sb32-ub32
Browse files Browse the repository at this point in the history
* code/ieee754/implementation.lisp (sb32-ub32): Replace conditional with
a call to LDB.
  • Loading branch information
paulapatience committed Jun 11, 2024
1 parent 8de064c commit 9e2fabb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/ieee754/implementation.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

(declaim (inline sb32-ub32))
(defun sb32-ub32 (sb32)
(if (minusp sb32)
(+ sb32 #.(ash 1 32))
sb32))
(ldb (byte 32 0) sb32))

;;; Based on NIBBLES::IEEE-SINGLE-REF/BE [1].
;;;
Expand Down

0 comments on commit 9e2fabb

Please sign in to comment.