Skip to content

Commit

Permalink
GMP has no ^= for mp_limb_t, only for unsigned long or long long ...
Browse files Browse the repository at this point in the history
  • Loading branch information
jgdumas committed Feb 23, 2016
1 parent 912d975 commit 44a003a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/kernel/recint/ruconvert.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ namespace RecInt
a += static_cast<uint32_t>(mp_limb_t(*it));
#else
a <<= 64;
//a ^= static_cast<uint64_t>(mp_limb_t(*it));
a ^= (mp_limb_t(*it));
#if __GIVARO_SIZEOF_LONG == 8
a ^= static_cast<unsigned long>(*it);
#else
a ^= static_cast<uint64_t>(*it);
#endif
#endif
}

Expand Down

0 comments on commit 44a003a

Please sign in to comment.