3 ms·
How do you check that your code never switches paths depending on CPU architecture? How do you guarantee that for the (third party) libraries you use, including
by Someone 14y ago
How do you check that your code never switches paths depending on CPU architecture? How do you guarantee that for the (third party) libraries you use, including your C library?
Also, I think modern x86 has a "approximate 1/x" instruction that is there to be as fast as possible and, because of that, allows for differences in results. I don't know whether that is true, or whether different implementations actually exist, though.
- DannyBee 14y agoYou are thinking of the RCPSS instruction.
- Dylan16807 14y agoIn the end though that sounds like you can't be entirely sure that chips in different generations are consistent, so it's not really a manufacturer difference problem.