Mill Computing, Inc. Forums The Mill Architecture Floating Point Rounding Reply To: Floating Point Rounding

gideony2
Participant
Post count: 9

Classic case of slowdown due to global rounding mode is
int=float;
the rules say you chop, and on the 80×87 this forces rounding mode to change twice, which costs a few
dozen cycles; see http://stereopsis.com/FPU.html.

There is a special optimization https://docs.microsoft.com/en-us/cpp/build/reference/qifist-suppress-ftol?view=vs-2017 to avoid this double change and allow rounding.

  • This reply was modified 6 years ago by  gideony2.