cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to implement BigNumbers on a STM32F4?

VMedi.0
Associate

I need to implement some BigNumber math on an STM32F4 (bn.h, conv.h, modular.h). I would like to use functions such as W8_to_Big(), StAllocBig(), and InitBig(). Unfortunately I cannot find any information on how to use these functions. Are there any examples or documentation that I could use to get a better understanding of these functions? Any help is appreciated!

3 REPLIES 3
Pavel A.
Evangelist III

Try Micro Python, it has big numbers like the normal Python. And it runs on F4.

-- pa

Perhaps stop couching it in terms of STM32F4, and review ARM support generally in the Cortex-Mx family, and embedded systems. Check for any porting guides.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I'm not sure which library you are referring to (bn.h, conv.h, modular.h), but you can try to use tiny-bignum-c - https://github.com/kokke/tiny-bignum-c

or even GNU GMP (if you want something more advanced) - https://gmplib.org/