func init() { C.mdq_init() if DecquadBytes != 16 { // 16 bytes == 128 bits panic("DECQUAD_Bytes != 16") } assert(C.DECSUBSET == 0) // because else, we should define Flag_Lost_digits as status flag assert(pool_buff_capacity > DecquadPmax) assert(pool_buff_capacity > DecquadString) // check that Roundxxx constants are >= 0, because Round method uses -1 internally, to indicate that the context rounding should be used assert(RoundCeiling >= 0) assert(RoundDown >= 0) assert(RoundFloor >= 0) assert(RoundHalfDown >= 0) assert(RoundHalfEven >= 0) assert(RoundHalfUp >= 0) assert(RoundUp >= 0) assert(Round05Up >= 0) assert(RoundDefault >= 0) }
func init() { C.mdq_init() if DecquadBytes != 16 { // 16 bytes == 128 bits panic("DECQUAD_Bytes != 16") } assert(C.DECSUBSET == 0) // because else, we should define LostDigits as status flag assert(poolBuffCapacity > DecquadPmax) assert(poolBuffCapacity > DecquadString) }