Skip to main content
AKart.1
Associate II
Jun 18, 2021 10:53 AM UTC
Solved

128 bit floating point not supported

Hi,

I'm using STM32F767.

​

​I require the use of a 128 bit floating point in C and I couldn't find how to do so.

I did a research on​line and I saw one suggestion to use the datatype "__float128"

but the build failed due to "unknown datatype __float128"

​

I am using a C11 compiler.

I'd love to hear any suggestions, or if there is an option in the STMCUBEIDE to change the compiler as well.

Appreciate any help I can get :grinning_face:

​

Thanks,

M ​

​

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Jun 18, 2021 1:43 PM UTC

CRC is an entirely integer algorithm. It is basically a shift register, which is easy to emulate using an array of words.

JW

4 replies

waclawek.jan
Super User
Jun 18, 2021 11:33 AM UTC

There is no support for quad float in gcc for ARM Cortex-M.

https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html

JW

AKart.1
AKart.1Author
Associate II
Jun 18, 2021 1:38 PM UTC

@Community member​  Thank you for your answer!

​

my code is calculating CRC, and the CRC calculation result is a big number sumtimes...

do you have any idea how to ​handle this situation in different way?

​

thanks​,

M​

waclawek.jan
waclawek.janBest answer
Super User
Jun 18, 2021 1:43 PM UTC

CRC is an entirely integer algorithm. It is basically a shift register, which is easy to emulate using an array of words.

JW

AKart.1
AKart.1Author
Associate II
Jun 18, 2021 1:48 PM UTC

@Community member​  thanks​