(42, all flavours) Integer Division - how?
|
12-13-2020, 06:41 PM
Post: #16
|
|||
|
|||
RE: (42, all flavours) Integer Division - how?
(12-13-2020 04:21 PM)Albert Chan Wrote: Assuming q is correctly rounded (mode round-to-nearest), r = 0 or -1 This allowed optimization of my FMA (Fused-Multiply-Add) code. Without using MOD, this is the fastest of all. Bonus: it removed the integer arguments requirement. PHP Code: function idiv4(a,b) -- asuumed b > 0 It would be nice if Free42 exposed FMA(a,b,c) to the user ... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)