Skip to content

Commit

Permalink
quaviver: add integer-float base 2 for ECL
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Jun 26, 2024
1 parent 8baf9a6 commit 0465fa9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/integer-float-2.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,12 @@
#+sbcl
(sb-kernel:make-double-float (ub32-sb32 (ldb (byte 32 32) bits))
(ldb (byte 32 0) bits))))

#+quaviver/long-float
(defmethod integer-float
(client (result-type (eql 'long-float)) (base (eql 2)) significand exponent sign)
(declare (ignore client))
(%integer-encode-float
(long-float bits significand exponent sign)
#+ecl
(system:bits-long-float bits)))

0 comments on commit 0465fa9

Please sign in to comment.