Skip to content

Commit

Permalink
various: fix some style warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Aug 31, 2024
1 parent b94be6c commit 9f84ed0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions code/benchmark/float-triple.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
(defun float-triple (&key (base 10)
(name (uiop:implementation-identifier)))
(let ((results (bench (lambda (client &key type limit)
(declare (ignore type))
(quaviver:float-triple client
base
(* (1- (ash (random 2) 1))
Expand Down
2 changes: 1 addition & 1 deletion code/blub/implementation.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
(multiple-value-bind (significand exponent sign)
(quaviver:float-triple client base value)
(when (keywordp exponent)
(error "Unable to represent ~a in ~a." exponent (client-standard client)))
(error "Unable to represent ~a." exponent))
(when (minusp sign)
(write-char #\- stream))
(let ((len (quaviver.math:ceiling-log-expt 10 2 (integer-length significand))))
Expand Down
2 changes: 2 additions & 0 deletions code/common-lisp/implementation.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
(if (typep value *read-default-float-format*)
#+(or ccl lispworks) #\E #-(or ccl lispworks) #\e
(etypecase value
#+quaviver/short-float
(short-float #+(or ccl lispworks) #\S #-(or ccl lispworks) #\s)
(single-float #+(or ccl lispworks) #\F #-(or ccl lispworks) #\f)
(double-float #+(or ccl lispworks) #\D #-(or ccl lispworks) #\d)
#+quaviver/long-float
(long-float #+(or ccl lispworks) #\L #-(or ccl lispworks) #\l))))

(defclass client ()
Expand Down
6 changes: 3 additions & 3 deletions code/fortran/implementation.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
(multiple-value-bind (significand exponent sign)
(quaviver:float-triple client base value)
(when (keywordp exponent)
(error "Unable to represent ~a in ~a." exponent (client-standard client)))
(error "Unable to represent ~a." exponent))
(when (minusp sign)
(write-char #\- stream))
(quaviver:write-digits base significand stream)
Expand All @@ -55,7 +55,7 @@
(multiple-value-bind (significand exponent sign)
(quaviver:float-triple client base value)
(when (keywordp exponent)
(error "Unable to represent ~a in ~a." exponent (client-standard client)))
(error "Unable to represent ~a." exponent))
(when (minusp sign)
(write-char #\- stream))
(quaviver:write-digits base significand stream)
Expand All @@ -70,7 +70,7 @@
(multiple-value-bind (significand exponent sign)
(quaviver:float-triple client base value)
(when (keywordp exponent)
(error "Unable to represent ~a in ~a." exponent (client-standard client)))
(error "Unable to represent ~a." exponent))
(when (minusp sign)
(write-char #\- stream))
(quaviver:write-digits base significand stream)
Expand Down
2 changes: 1 addition & 1 deletion code/liebler/implementation.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(max-exponent quaviver:max-exponent))
float-type
(let* ((extra 6)
(word-size (+ extra significand-size)))
#+(or)(word-size (+ extra significand-size)))
`(locally
(declare #+(or)(type (unsigned-byte ,word-size)
,significand-var)
Expand Down
1 change: 1 addition & 0 deletions code/number-parser.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@
,fractional ,fractional-count ,fractional-leading-zero ,fractional-base
,divisor ,divisor-count, divisor-leading-zero ,divisor-base
,exponent-sign ,exponent ,exponent-count ,exponent-leading-zero ,exponent-base
,payload-count ,payload-leading-zero ,payload-base
,sign ,character))
,@expanded-clauses
,*next-tag*
Expand Down
1 change: 0 additions & 1 deletion code/write-digits.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
(fractional-position (or fractional-position power))
(pos (- (min fractional-position 0)
leading-zeros))
digit
digits-written-p
(zero-char (funcall digit-char 0 base)))
(labels ((write-digit (ch)
Expand Down

0 comments on commit 9f84ed0

Please sign in to comment.