mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-16 22:32:05 -08:00
TRAP-FPE is not needed in the core lisp library
This commit is contained in:
parent
02db89a9bc
commit
065dd6b59e
1 changed files with 3 additions and 2 deletions
|
|
@ -33,8 +33,9 @@
|
|||
(/= (float 1 x) (+ (float 1 x) x)))
|
||||
(epsilon- (x)
|
||||
(/= (float 1 x) (- (float 1 x) x))))
|
||||
#+ecl-min
|
||||
(si::trap-fpe 'last nil)
|
||||
`(eval-when (compile load eval)
|
||||
(let ((bits (si::trap-fpe 'last nil)))
|
||||
(defconstant short-float-epsilon
|
||||
,(binary-search #'epsilon+ (coerce 0 'short-float) (coerce 1 'short-float))
|
||||
"The smallest postive short-float E that satisfies
|
||||
|
|
@ -67,7 +68,7 @@
|
|||
,(binary-search #'epsilon- (coerce 0 'long-float) (coerce 1 'long-float))
|
||||
"The smallest positive long-float E that satisfies
|
||||
(not (= (float 1 E) (- (float 1 E) E)))")
|
||||
(si::trap-fpe 'last nil))))
|
||||
))
|
||||
|
||||
#+IEEE-FLOATING-POINT
|
||||
(locally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue