2019-08-15 11:56 AM
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!
2019-08-15 02:14 PM
Try Micro Python, it has big numbers like the normal Python. And it runs on F4.
-- pa
2019-08-15 02:31 PM
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.
2019-08-16 12:50 AM
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/