arbitrary integer.
(yasm_intnum_zero): Reimplement using yasm_intnum_set_uint.
* intnum.h (yasm_intnum_set_uint): Prototype.
svn path=/trunk/yasm/; revision=1339
void
yasm_intnum_zero(yasm_intnum *intn)
+{
+ yasm_intnum_set_uint(intn, 0);
+}
+
+void
+yasm_intnum_set_uint(yasm_intnum *intn, unsigned long val)
{
if (intn->type == INTNUM_BV) {
BitVector_Destroy(intn->val.bv);
intn->type = INTNUM_UL;
}
- intn->val.ul = 0;
+ intn->val.ul = val;
}
int
*/
void yasm_intnum_zero(yasm_intnum *intn);
+/** Set an intnum to an unsigned integer.
+ * \param intn intnum
+ * \param val integer value
+ */
+void yasm_intnum_set_uint(yasm_intnum *intn, unsigned long val);
+
/** Simple value check for 0.
* \param acc intnum
* \return Nonzero if acc==0.