ATSLIB/contrib/libats-hwxi/intinf_t

This package is for supporting integers of unlimited precision, and it is implemented based on the GMP library. The primary purpose of the package is to provide a simple and clean approach to programming with large integers.


  • intinf
  • Intinf
  • intinfLt
  • intinfLte
  • intinfGt
  • intinfGte
  • intinfBtw
  • intinfBtwe
  • intinf_make_int
  • intinf_make_uint
  • intinf_make_lint
  • intinf_make_ulint
  • intinf_free
  • print_intinf
  • prerr_intinf
  • fprint_intinf
  • fprint_intinf_base
  • abs_intinf
  • neg_intinf
  • succ_intinf1
  • pred_intinf1
  • add_intinf_int
  • add_int_intinf
  • add_intinf_intinf
  • sub_intinf_int
  • sub_int_intinf
  • sub_intinf_intinf
  • mul_intinf_int
  • mul_int_intinf
  • mul_intinf_intinf
  • compare_int_intinf
  • compare_intinf_int
  • compare_intinf_intinf
  • pow_intinf_int

  • intinf

    Synopsis

    stadef intinf = intinf_type

    Intinf

    Synopsis

    typedef Intinf = [i:int] intinf (i)

    intinfLt

    Synopsis

    typedef
    intinfLt (i0:int) = [i:int | i < i0] intinf (i)

    intinfLte

    Synopsis

    typedef
    intinfLte (i0:int) = [i:int | i <= i0] intinf (i)

    intinfGt

    Synopsis

    typedef
    intinfGt (i0:int) = [i:int | i > i0] intinf (i)

    intinfGte

    Synopsis

    typedef
    intinfGte (i0:int) = [i:int | i >= i0] intinf (i)

    intinfBtw

    Synopsis

    typedef
    intinfBtw (i1:int, i2:int) = [i:int | i1 <= i; i < i2] intinf (i)

    intinfBtwe

    Synopsis

    typedef
    intinfBtwe (i1:int, i2:int) = [i:int | i1 <= i; i <= i2] intinf (i)

    intinf_make_int

    Synopsis

    fun{}
    intinf_make_int {i:int} (x: int (i)): intinf (i)

    intinf_make_uint

    Synopsis

    fun{}
    intinf_make_uint {i:int} (x: uint (i)): intinf (i)

    intinf_make_lint

    Synopsis

    fun{}
    intinf_make_lint {i:int} (x: lint (i)): intinf (i)

    intinf_make_ulint

    Synopsis

    fun{}
    intinf_make_ulint {i:int} (x: ulint (i)): intinf (i)

    intinf_free

    Synopsis

    Synopsis for [intinf_free] is unavailable.

    print_intinf

    Synopsis

    fun{}
    print_intinf (x: Intinf): void

    prerr_intinf

    Synopsis

    fun{}
    prerr_intinf (x: Intinf): void

    fprint_intinf

    Synopsis

    fun{}
    fprint_intinf (out: FILEref, x: Intinf): void

    fprint_intinf_base

    Synopsis

    fun{}
    fprint_intinf_base
      (out: FILEref, x: Intinf, base: intinf_base): void

    abs_intinf

    Synopsis

    fun{}
    abs_intinf {i:int} (x: intinf i): intinf (abs(i))

    neg_intinf

    Synopsis

    fun{}
    neg_intinf {i:int} (x: intinf i): intinf (~i)

    succ_intinf1

    Synopsis

    Synopsis for [succ_intinf1] is unavailable.

    pred_intinf1

    Synopsis

    Synopsis for [pred_intinf1] is unavailable.

    add_intinf_int

    Synopsis

    fun{}
    add_intinf_int
      {i,j:int} (x: intinf i, y: int j): intinf (i+j)

    add_int_intinf

    Synopsis

    fun{}
    add_int_intinf
      {i,j:int} (x: int i, y: intinf j): intinf (i+j)

    add_intinf_intinf

    Synopsis

    fun{}
    add_intinf_intinf
      {i,j:int} (x: intinf i, y: intinf j): intinf (i+j)

    sub_intinf_int

    Synopsis

    fun{}
    sub_intinf_int
      {i,j:int} (x: intinf i, y: int j): intinf (i-j)

    sub_int_intinf

    Synopsis

    fun{}
    sub_int_intinf
      {i,j:int} (x: int i, y: intinf j): intinf (i-j)

    sub_intinf_intinf

    Synopsis

    fun{}
    sub_intinf_intinf
      {i,j:int} (x: intinf i, y: intinf j): intinf (i-j)

    mul_intinf_int

    Synopsis

    fun{}
    mul_intinf_int
      {i,j:int} (x: intinf i, y: int j): intinf (i*j)

    mul_int_intinf

    Synopsis

    fun{}
    mul_int_intinf
      {i,j:int} (x: int i, y: intinf j): intinf (i*j)

    mul_intinf_intinf

    Synopsis

    fun{}
    mul_intinf_intinf
      {i,j:int} (x: intinf i, y: intinf j): intinf (i*j)

    compare_int_intinf

    Synopsis

    fun{}
    compare_int_intinf
      {i,j:int} (x: int i, y: intinf j):<> int (sgn(i-j))

    compare_intinf_int

    Synopsis

    fun{}
    compare_intinf_int
      {i,j:int} (x: intinf i, y: int j):<> int (sgn(i-j))

    compare_intinf_intinf

    Synopsis

    fun{}
    compare_intinf_intinf
      {i,j:int} (x: intinf i, y: intinf j):<> int (sgn(i-j))

    pow_intinf_int

    Synopsis

    fun{}
    pow_intinf_int
      {i:nat} (base: Intinf, exp: int i): Intinf

    This page is created with ATS by Hongwei Xi and also maintained by Hongwei Xi. SourceForge.net Logo