DEFINE_PRIMITIVE ("FLONUM-TAN", Prim_flonum_tan, 1, 1, 0)
SIMPLE_TRANSCENDENTAL_FUNCTION (tan)
DEFINE_PRIMITIVE ("FLONUM-ASIN", Prim_flonum_asin, 1, 1, 0)
- RESTRICTED_TRANSCENDENTAL_FUNCTION (asin, ((x >= -1) && (x <= 1)))
+ SIMPLE_TRANSCENDENTAL_FUNCTION (asin)
DEFINE_PRIMITIVE ("FLONUM-ACOS", Prim_flonum_acos, 1, 1, 0)
- RESTRICTED_TRANSCENDENTAL_FUNCTION (acos, ((x >= -1) && (x <= 1)))
+ SIMPLE_TRANSCENDENTAL_FUNCTION (acos)
DEFINE_PRIMITIVE ("FLONUM-ATAN", Prim_flonum_atan, 1, 1, 0)
SIMPLE_TRANSCENDENTAL_FUNCTION (atan)
}
DEFINE_PRIMITIVE ("FLONUM-SQRT", Prim_flonum_sqrt, 1, 1, 0)
- RESTRICTED_TRANSCENDENTAL_FUNCTION (sqrt, (x >= 0))
+ SIMPLE_TRANSCENDENTAL_FUNCTION (sqrt)
DEFINE_PRIMITIVE ("FLONUM-CBRT", Prim_flonum_cbrt, 1, 1, 0)
SIMPLE_TRANSCENDENTAL_FUNCTION (cbrt)
(define-invop-trap-test 'flonum-sqrt (applicator flo:sqrt -1.)) ;(g)
(define-invop-flag-test 'flonum-sqrt
- (applicator (make-primitive-procedure 'flonum-sqrt) -1.)
- 'xerror)
+ (applicator (make-primitive-procedure 'flonum-sqrt) -1.))
(define-invop-trap-test 'flonum-sqrt
- (applicator (make-primitive-procedure 'flonum-sqrt) -1.)
- 'xerror)
+ (applicator (make-primitive-procedure 'flonum-sqrt) -1.))
;;; IEEE 754-2008, Sec. 7.3
;; XXX atanpi, atan2pi
-(define-invop-flag-test 'flonum-asin (applicator flo:asin 2.) 'xerror)
-(define-invop-trap-test 'flonum-asin (applicator flo:asin 2.) 'xerror)
+(define-invop-flag-test 'flonum-asin (applicator flo:asin 2.))
+(define-invop-trap-test 'flonum-asin (applicator flo:asin 2.))
;; XXX Not clear how to make asin underflow reliably.
-(define-invop-flag-test 'flonum-acos (applicator flo:acos 2.) 'xerror)
-(define-invop-trap-test 'flonum-acos (applicator flo:acos 2.) 'xerror)
+(define-invop-flag-test 'flonum-acos (applicator flo:acos 2.))
+(define-invop-trap-test 'flonum-acos (applicator flo:acos 2.))
;; XXX Not clear how to make atan underflow reliably.
;; XXX sinh, cosh, tanh, asinh, acosh, atanh