}
int
-yasm_intnum_is_zero(yasm_intnum *intn)
+yasm_intnum_is_zero(const yasm_intnum *intn)
{
return (intn->type == INTNUM_UL && intn->val.ul == 0);
}
int
-yasm_intnum_is_pos1(yasm_intnum *intn)
+yasm_intnum_is_pos1(const yasm_intnum *intn)
{
return (intn->type == INTNUM_UL && intn->val.ul == 1);
}
int
-yasm_intnum_is_neg1(yasm_intnum *intn)
+yasm_intnum_is_neg1(const yasm_intnum *intn)
{
return (intn->type == INTNUM_BV && BitVector_is_full(intn->val.bv));
}
int
-yasm_intnum_sign(yasm_intnum *intn)
+yasm_intnum_sign(const yasm_intnum *intn)
{
if (intn->type == INTNUM_UL) {
if (intn->val.ul == 0)
* \param acc intnum
* \return Nonzero if acc==0.
*/
-int yasm_intnum_is_zero(yasm_intnum *acc);
+int yasm_intnum_is_zero(const yasm_intnum *acc);
/** Simple value check for 1.
* \param acc intnum
* \return Nonzero if acc==1.
*/
-int yasm_intnum_is_pos1(yasm_intnum *acc);
+int yasm_intnum_is_pos1(const yasm_intnum *acc);
/** Simple value check for -1.
* \param acc intnum
* \return Nonzero if acc==-1.
*/
-int yasm_intnum_is_neg1(yasm_intnum *acc);
+int yasm_intnum_is_neg1(const yasm_intnum *acc);
/** Simple sign check.
* \param acc intnum
* \return -1 if negative, 0 if zero, +1 if positive
*/
-int yasm_intnum_sign(yasm_intnum *acc);
+int yasm_intnum_sign(const yasm_intnum *acc);
/** Convert an intnum to an unsigned 32-bit value. The value is in "standard"
* C format (eg, of unknown endian).