4 ms·
Here's how the dmd D compiler does it: https://github.com/dlang/dmd/blob/master/src/backend/divcoeff.c https://github.com/dlang/dmd/blob/master/src/backend/div
by WalterBright 10y ago
Here's how the dmd D compiler does it:
https://github.com/dlang/dmd/blob/master/src/backend/divcoeff.c https://github.com/dlang/dmd/blob/master/src/backend/divcoef...
- metaphor 10y agoNoticed Granlund and Montgomery paper[1] cited in comment. Apparently, Warren also cites the same in Hacker's Delight. [1] https://doi.org/10.1145/773473.178249 https://doi.org/10.1145/773473.178249
- Cyph0n 10y agoHe is also known for Montgomery modular multiplication, which is a technique widely used to efficiently implement RSA in hardware.