Skip to content

Commit

Permalink
Update fastmod.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Jan 31, 2024
1 parent 3c1bc44 commit 74063e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/fastmod.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ FASTMOD_API uint64_t mul128_u32(uint64_t lowbits, uint32_t d) {
return __umulh(lowbits, d);
}
FASTMOD_API uint64_t mul128_s32(uint64_t lowbits, int32_t d) {
// not equivalent to ((__int128_t)lowbits * d) >> 64
return __mulh(lowbits, d);
}

Expand Down

0 comments on commit 74063e0

Please sign in to comment.