[PATCH v2] riscv: Add macros for FPUCW/fcsr in fpu_control.h
Shiqi Zhang
shiqi@isrc.iscas.ac.cn
Mon Feb 13 10:17:14 GMT 2023
The fenv macro FE_TONEARESTFROMZERO doesn't exist yet and seems to
belong to a newer version of C standard draft. Maybe I should implement
that along with the macros in fpu_control.h?
I'm defining these macros here primarily because in most cases glibc is
the lowest layer of user programs. So I think it's the best place to
define these macros for directly interacting with arch-specific things
like FPU control, like other architectures have done.
At 2023/2/13 16:39, Andreas Schwab wrote:
> On Feb 13 2023, Shiqi Zhang wrote:
>
>> The rounding mode RMM (Round to Nearest, ties to Max Magnitude) of
>> RISC-V isn't part of the C standard.
> Doesn't that match FE_TONEARESTFROMZERO? In any case, an implementation
> may add additional FE_ macros.
>
More information about the Libc-alpha
mailing list