[Libre-soc-dev] New instruction
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Tue Mar 2 18:23:03 GMT 2021
On Tuesday, March 2, 2021, Jacob Lifshay <programmerjake at gmail.com> wrote:
> no... it turns into a single shift and mask operation at the HW
> level...such is the fate of division by a constant power of 2.
v = fmod(v, 1LL << 32);
ah wheww.
a subtract on the exponent, looping minus 32 each time. that's tolerable.
still absolutely dreadful, mind.
l.
--
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
More information about the Libre-soc-dev
mailing list