(define (reset-package!)
(set! default-environment
- (without-interrupts
- (lambda ()
- (let ((fp-env ((ucode-primitive FLOAT-ENVIRONMENT 0))))
- ((ucode-primitive SET-FLOAT-ROUNDING-MODE 1)
- (%mode-name->number
- (flo:default-rounding-mode)
- '|#[(runtime floating-point-environment)reset-package!]|))
- ((ucode-primitive CLEAR-FLOAT-EXCEPTIONS 1)
- (flo:supported-exceptions))
- ((ucode-primitive SET-TRAPPED-FLOAT-EXCEPTIONS 1)
- (flo:default-trapped-exceptions))
- (let ((fp-env* ((ucode-primitive FLOAT-ENVIRONMENT 0))))
- ((ucode-primitive SET-FLOAT-ENVIRONMENT 1) fp-env)
- fp-env*)))))
+ (let ((fp-env ((ucode-primitive FLOAT-ENVIRONMENT 0))))
+ ((ucode-primitive SET-FLOAT-ROUNDING-MODE 1)
+ (%mode-name->number
+ (flo:default-rounding-mode)
+ '|#[(runtime floating-point-environment)reset-package!]|))
+ ((ucode-primitive CLEAR-FLOAT-EXCEPTIONS 1)
+ (flo:supported-exceptions))
+ ((ucode-primitive SET-TRAPPED-FLOAT-EXCEPTIONS 1)
+ (flo:default-trapped-exceptions))
+ (let ((fp-env* ((ucode-primitive FLOAT-ENVIRONMENT 0))))
+ ((ucode-primitive SET-FLOAT-ENVIRONMENT 1) fp-env)
+ fp-env*)))
unspecific)
(define (initialize-package!)