Floating point rounding

Asked by Adrian Gin

I'd like to be able to set the IEE754 rounding method doing certain calculations.

How is it possible to use the fesetround and functions described in fenv.h? I can't seem to get it to work on a M4 FPU

I wonder how it is possible to use the features and functions in https://www.gnu.org/software/libc/manual/html_node/Rounding.html

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andre Vieira (andre-simoesdiasvieira) said :
#1

Hi Adrian,

There is currently no fenv implementation for ARM in newlib, the C library we use for the GNU ARM Embedded Toolchain.

Regards,
Andre

Can you help with this problem?

Provide an answer of your own, or ask Adrian Gin for more information if necessary.

To post a message you must log in.