A fixed point math header-library for C, under a liberal license.
Features
- Fixed point math library
- Requires a fairly modern C compiler with uint32_t and uint64_t
- 32-bit and 64-bit precision support (for compilers with __int128_t extensions like gcc)
- Arbitrary precision point (e.g. 24.8 or 32.32)
- Pure header-only
- Pure integer-only (suitable for kernels, embedded CPUs, etc)
License
BSD LicenseFollow Fixed Point Math Library for C
You Might Also Like
The All-in-One Commerce Platform for Businesses - Shopify Icon
The All-in-One Commerce Platform for Businesses - Shopify
Shopify offers plans for anyone that wants to sell products online and build an ecommerce store, small to mid-sized businesses as well as enterprise
Shopify is a leading all-in-one commerce platform that enables businesses to start, build, and grow their online and physical stores. It offers tools to create customized websites, manage inventory, process payments, and sell across multiple channels including online, in-person, wholesale, and global markets. The platform includes integrated marketing tools, analytics, and customer engagement features to help merchants reach and retain customers. Shopify supports thousands of third-party apps and offers developer-friendly APIs for custom solutions. With world-class checkout technology, Shopify powers over 150 million high-intent shoppers worldwide. Its reliable, scalable infrastructure ensures fast performance and seamless operations at any business size.
Learn More
Rate This Project
Login To Rate This Project
User Ratings
★★★★★
★★★★
★★★
★★
★
2
1
0
0
0
ease
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
4 / 5
features
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
4 / 5
design
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
4 / 5
support
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
2 / 5
User Reviews
-
bryce Posted 2018年05月23日fixedpt_sqrt() returns 0 for any number if FIXEDPT_BITS == 64. To fix this, inside fixedpt_sqrt define variables l and s as fixedpt instead of int.
-
andersced Posted 2015年09月07日Hi. I dont know how to submit code here but the fixedpt_str 'negation' should look like this: if (A < 0) { str[slen++] = '-'; A=~A; //A *= -1; }
-
eric_horn Posted 2015年01月28日this library works very well. i Have modified the code to get a higher precision by the sin function. is there an explanation to the code for sin function. don't unterstand every row regards eric