> CSR write could be expensive, it will flush whole pipeline in some
> RISC-V core implementation…
Hopefully not flush but just sequentialize but yes, it's usually a
performance concern.  However if we set the rounding mode to something
else for an intrinsic and then call a function we want to restore it
one way or another, right?

That's also the reason why glibc has done a lot of work to minimize
fesetround calls (or other fcsr setters).

Regards
 Robin

Reply via email to