cyclone/docs/api/srfi/143.md
Justin Ethier 226d4c8c65 Fix links
2017-08-08 18:31:38 -04:00

1.9 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-1 fx-2 fx-3 [fx-4fx>=?) fxzero fxpositive fxnegative fxodd fxeven fxmax fxmin

Basic arithmetic

fx-5 fx- fx-6 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