Home
Softono
g

gbmhunter

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
1

Software by gbmhunter

MFixedPoint
Open Source

MFixedPoint

MFixedPoint is a header-only fixed-point C++ library designed for fast arithmetic on systems without a floating-point unit, particularly embedded platforms such as ARM Cortex-M0/M3, ATmega, MSP430, PSoC 4/5, and Arduino. It enables computationally intensive tasks like BLDC motor control and image processing on microcontrollers lacking FPU support, delivering best performance on 32-bit or higher architectures while remaining functional on 8-bit systems. The library is slower than native float/double on CPUs with an FPU, where fixed-point operations may run roughly 10x slower than floating-point counterparts. It is intended specifically for FPU-less environments. MFixedPoint provides signed fixed-point numbers that behave as full data types, supporting operator overloading, implicit and explicit casting, and interoperability with templated libraries. The recommended class is FpS, which handles arithmetic between numbers with differing fractional bit counts and allows casting to built-in types like int and doubl

Firmware & RTOS
174 Github Stars