Next: , Previous: , Up: objects   [Index]


13.14 Exact integer objects

An exact integer is either a fixnum or a bignum.

Convenience preprocessor macros

Preprocessor Macro: int IK_IS_INTEGER (ikptr_t obj)

Evaluate to true if obj is either a fixnum or a bignum.

Operations on exact integers

Function: int ik_is_bignum (ikptr_t obj)

Return true if obj is a bignum.

Function: ikptr_t ika_integer_from_int (ikpcb_t * pcb, int N)
Function: ikptr_t ika_integer_from_long (ikpcb_t * pcb, long N)
Function: ikptr_t ika_integer_from_llong (ikpcb_t * pcb, ik_llong N)
Function: ikptr_t ika_integer_from_uint (ikpcb_t * pcb, ik_uint N)
Function: ikptr_t ika_integer_from_ulong (ikpcb_t * pcb, ik_ulong N)
Function: ikptr_t ika_integer_from_ullong (ikpcb_t * pcb, ik_ullong N)

Build and return a new exact integer object from the given C language value.

Function: ikptr_t ika_integer_from_sint8 (ikpcb_t * pcb, int8_t N)
Function: ikptr_t ika_integer_from_sint16 (ikpcb_t * pcb, int16_t N)
Function: ikptr_t ika_integer_from_sint32 (ikpcb_t * pcb, int32_t N)
Function: ikptr_t ika_integer_from_sint64 (ikpcb_t * pcb, int64_t N)
Function: ikptr_t ika_integer_from_uint8 (ikpcb_t * pcb, uint8_t N)
Function: ikptr_t ika_integer_from_uint16 (ikpcb_t * pcb, uint16_t N)
Function: ikptr_t ika_integer_from_uint32 (ikpcb_t * pcb, uint32_t N)
Function: ikptr_t ika_integer_from_uint64 (ikpcb_t * pcb, uint64_t N)

Build and return a new exact integer object from the given C language value.

Function: ikptr_t ika_integer_from_off_t (ikpcb_t * pcb, off_t N)
Function: ikptr_t ika_integer_from_ssize_t (ikpcb_t * pcb, ssize_t N)
Function: ikptr_t ika_integer_from_size_t (ikpcb_t * pcb, size_t N)
Function: ikptr_t ika_integer_from_ptrdiff_t (ikpcb_t * pcb, ptrdiff_t N)

Build and return a new exact integer object from the given C language value.

Function: ikptr_t ika_integer_from_sword (ikpcb_t * pcb, iksword_t W)
Function: ikptr_t ika_integer_from_uword (ikpcb_t * pcb, ikuword_t W)

Build and return a new exact integer object from the given C language value.

Function: int ik_integer_to_int (ikptr_t X)
Function: long ik_integer_to_long (ikptr_t X)
Function: ik_llong ik_integer_to_llong (ikptr_t X)
Function: ik_uint ik_integer_to_uint (ikptr_t X)
Function: ik_ulong ik_integer_to_ulong (ikptr_t X)
Function: ik_ullong ik_integer_to_ullong (ikptr_t X)

Return a C language number from a Scheme exact integer object. The object X must be in the correct range for the requested conversion.

Function: int8_t ik_integer_to_sint8 (ikptr_t X)
Function: int16_t ik_integer_to_sint16 (ikptr_t X)
Function: int32_t ik_integer_to_sint32 (ikptr_t X)
Function: int64_t ik_integer_to_sint64 (ikptr_t X)
Function: uint8_t ik_integer_to_uint8 (ikptr_t X)
Function: uint16_t ik_integer_to_uint16 (ikptr_t X)
Function: uint32_t ik_integer_to_uint32 (ikptr_t X)
Function: uint64_t ik_integer_to_uint64 (ikptr_t X)

Return a C language number from a Scheme exact integer object. The object X must be in the correct range for the requested conversion.

Function: off_t ik_integer_to_off_t (ikptr_t x)
Function: size_t ik_integer_to_size_t (ikptr_t x)
Function: ssize_t ik_integer_to_ssize_t (ikptr_t x)
Function: ptrdiff_t ik_integer_to_ptrdiff_t (ikptr_t x)

Return a C language number from a Scheme exact integer object. The object X must be in the correct range for the requested conversion.

Function: iksword_t ika_integer_from_sword (ikpcb_t * pcb, ikptr_t X)
Function: ikuword_t ika_integer_from_uword (ikpcb_t * pcb, ikptr_t X)

Return a C language number from a Scheme exact integer object. The object X must be in the correct range for the requested conversion.


Next: , Previous: , Up: objects   [Index]