Skip to content

Commit

Permalink
native: ignore BASE, EXPONENT in INTEGER-FLOAT
Browse files Browse the repository at this point in the history
* code/native/integer-float.lisp (quaviver:integer-float): Ignore unused
parameters.
  • Loading branch information
paulapatience committed Jul 5, 2024
1 parent 3b06535 commit 9aa5785
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/native/integer-float.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@

(defmethod quaviver:integer-float
((client client) (result-type (eql 'single-float)) base (significand (eql 0)) exponent sign)
(declare (ignore base exponent))
(if (minusp sign) -0f0 0f0))

(defmethod quaviver:integer-float
((client client) (result-type (eql 'double-float)) base (significand (eql 0)) exponent sign)
(declare (ignore base exponent))
(if (minusp sign) -0d0 0d0))

#+quaviver/long-float
(defmethod quaviver:integer-float
((client client) (result-type (eql 'long-float)) base (significand (eql 0)) exponent sign)
(declare (ignore base exponent))
(if (minusp sign) -0l0 0l0))

0 comments on commit 9aa5785

Please sign in to comment.