Floating-Point Arithmetic

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

I have been working with the WICED-Smart SDK, and have had some trouble in regards to floating-point math.

When I try to do double arithmetic (i.e. increase a double variable by 1) I get multiple runtime errors such as the following:

undefined reference to `__aeabi_i2d'

I assume this is coming up because I haven't included the proper library in order to these functions, is that correct?

If so, is there an accessible library that can solve this and allow this arithmetic to happen?

Any help you can provide will be greatly appreciated.

Thanks,
Gurpal

0 Likes
1 Solution

You can also consider using a fixed point math library like libfixmath. With caching and the look-up-table disabled, this library compiles to under 2K. Unused function elimination is enabled by default for all applications in the SDK. So only functions that are accessed by the application will be included in the final image.

View solution in original post

0 Likes
4 Replies