cyclone/docs/api/srfi/143.md
2017-08-08 18:27:13 -04:00

2 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

fx-width fx-greatest fx-least

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-greatest

fx-least

fixnum?

fx=?

fx<?

fx>?

fx<=?

fx>=?

fxzero?

fxpositive?

fxnegative?

fxodd?

fxeven?

fxmax

fxmin

fx+

fx-

fx*

fxneg

fxquotient

fxremainder

fxabs

fxsquare

fxsqrt

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