Fixed Point Support in Code Development Systems
Selected Code Development Systems support fixed point; as new versions are released, fixed point support extends across our product line. Fixed point data type support is built in to the compiler, with appropriate library routines. Full versions of our Code Development Systems include full source code for fixed point libraries.
Fixed point types are native to the compiler. We support three varieties:
- Legacy
fixed168andfixed1616have the largest accumulator size. _Fractand_Accumcorrespond most closely to ISO TR 18037.signedandunsigned,shortandlongare accepted.fractxxandaccumxx(unambiguous types) offer 8, 16, and 24 bit fractional parts (accumxxhave 8 bit integer components).
Additional support is available in the FIX_math.c/FIX_math.h library. This library supplies transcendental functions suitable for use with _Accum types. Functions include
abs()ceil(),floor()sin(),cos(),tan();arcand hyperbolic versionsexp()andlog()pow()andsqrt()

eTPU_C:
C6808: