}
Integer bitwiseNot() const {
- return Integer(cln::lognot(d_value));
+ return Integer(cln::lognot(d_value));
}
-
-
+
+
/**
* Return this*(2^pow).
*/
cln::cl_byte range(amount, size);
cln::cl_I allones = (cln::cl_I(1) << (size + amount))- 1; // 2^size - 1
Integer temp(allones);
-
- return Integer(cln::deposit_field(allones, d_value, range));
+
+ return Integer(cln::deposit_field(allones, d_value, range));
}
-
+
uint32_t toUnsignedInt() const {
- return cln::cl_I_to_uint(d_value);
+ return cln::cl_I_to_uint(d_value);
}
-
-
+
+
/** See CLN Documentation. */
Integer extractBitRange(uint32_t bitCount, uint32_t low) const {
cln::cl_byte range(bitCount, low);
}
Integer divByPow2(uint32_t exp) const {
- return d_value >> exp;
+ return d_value >> exp;
}
-
+
/**
* Raise this Integer to the power <code>exp</code>.
*