{
- for (long j = 0; j < pow((double)3, totalLength); j++)
+ for (long j = 0; j < pow(3, totalLength); j++)
{
FixedBits output(resultLength, signature.resultType == BOOL_TYPE);
imprecise = true;
checkEqual(children, output, transfer, kind, imprecise,d);
- assert(!d.conflicts);
+ assert(!d.conflict);
initial += d.initial;
transferC += d.transferFixed;
lengths.push_back(resultLength);
totalLength += resultLength;
- for (long j = 0; j < pow((double)3, totalLength); j++)
+ for (long j = 0; j < pow(3, totalLength); j++)
{
int current = j;
const int numberOfInputParams = 2;
assert(numberOfInputParams >0);
- const int mask = pow((double)2, bitwidth) - 1;
+ const int mask = pow(2, bitwidth) - 1;
// Create all the possible inputs, and apply the function.
- for (int i = 0; i < pow((double)2, bitwidth * numberOfInputParams); i++)
+ for (int i = 0; i < pow(2, bitwidth * numberOfInputParams); i++)
{
D d;
d.a = i & mask;
FixedBits empty(bitwidth, false);
FixedBits c_a(bitwidth, false), c_b(bitwidth, false), c_o(bitwidth, false);
- const int to_iterate = pow((double)3, totalLength);
+ const int to_iterate = pow(3, totalLength);
for (long j = 0; j < to_iterate; j++)
{
int current = j;