2.3 KiB
SRFI 143 - Fixnums
This SRFI describes arithmetic procedures applicable to a limited range of exact integers only. These procedures are semantically similar to the corresponding generic-arithmetic procedures, but allow more efficient implementations.
See the SRFI document for more information.
Constants
Predicates
fixnum
fx=?
fx<?
fx>?
fx<=?
fx>=?
fxzero?
fxpositive?
fxnegative?
fxodd?
fxeven?
fxmax
fxmin
Basic arithmetic
fx+
fx-
fx*
fxneg
fxquotient
fxremainder
fxabs
fxsquare
fxsqrt
Bitwise operations
fxnot
fxand
fxior
fxxor
fxarithmetic-shift
fxarithmetic-shift-left
fxarithmetic-shift-right
fxbit-count
fxlength
fxif
fxbit-set?
fxcopy-bit
fxfirst-set-bit
fxbit-field
fxbit-field-rotate
fxbit-field-reverse
fx-width
(fx-width)
Bound to the value w
that specifies the implementation-defined fixnum integer range.
fx-greatest
(fx-greatest)
Returns value of the largest representable fixnum.
fx-least
(fx-least)
Returns value of the smallest representable fixnum.
fixnum?
(fixnum? obj)
Returns #t
if obj
is an exact integer within the fixnum range, and #f
otherwise.
fx=?
(fx=? i j)
Semantically equivalent to =
.