SRFI 143: fx-{width,least,greatest} are not procedures

In the SRFI text, these are constants:

fx-width
fx-greatest
fx-least

But they were implemented as procedures in Cyclone.

This patch changes that, so they now are implemented
as constants.
This commit is contained in:
Jeronimo Pellegrini 2023-03-04 06:53:53 -03:00
parent cb67aeb0a3
commit b60bfc266b

View file

@ -36,9 +36,6 @@
fxbit-field-rotate fxbit-field-reverse fxbit-field-rotate fxbit-field-reverse
) )
(inline (inline
fx-width
fx-greatest
fx-least
fixnum? fixnum?
fx=? fx<? fx>? fx<=? fx>=? fx=? fx<? fx>? fx<=? fx>=?
fxzero? fxpositive? fxnegative? fxodd? fxeven? fxzero? fxpositive? fxnegative? fxodd? fxeven?
@ -56,9 +53,9 @@
mask mask
) )
(begin (begin
(define (fx-width) 31) (define fx-width 31)
(define (fx-greatest) 1073741823) (define fx-greatest 1073741823)
(define (fx-least) -1073741824) (define fx-least -1073741824)
(define-syntax bin-num-op (define-syntax bin-num-op
(er-macro-transformer (er-macro-transformer