asm v0.0.9 Asm

Asm aimed at implementing an inline assembler.

Currently, it provides the following:

  • is_int64 macro that can be used in when clauses to judge that a value is within INT64.
  • is_uint64 macro that can be used in when clauses to judge that a value is within UINT64.
  • is_bignum macro that can be used in when clauses to judge that a value needs BigNum representation, that is, it is an integer but not within INT64 nor UINT64.
  • max_int is the constant value of maxium of INT64.
  • min_int is the constant value of minimum of INT64.
  • max_uint is the constant value of maxium of UINT64.
  • min_uint is the constant value of minimum of UINT64.

Link to this section Summary

Functions

is_bignum(value) returns true if the value is an integer but larger than max_uint and smaller than min_int

is_int64(value) returns true if the value is a signed integer, equals or is less than max_int and equals or is greater than min_int

is_uint64(value) returns true if the value is an unsigned integer, equals or is less than max_uint and equals or is greater than min_uint

Link to this section Functions

Link to this macro is_bignum(value) (macro)

is_bignum(value) returns true if the value is an integer but larger than max_uint and smaller than min_int.

Link to this macro is_int64(value) (macro)

is_int64(value) returns true if the value is a signed integer, equals or is less than max_int and equals or is greater than min_int.

Link to this macro is_uint64(value) (macro)

is_uint64(value) returns true if the value is an unsigned integer, equals or is less than max_uint and equals or is greater than min_uint.