Libfixmath: Difference between revisions

Content deleted Content added
Updated PXA270 stats for uncached like the rest.
FrescoBot (talk | contribs)
m Bot: links syntax
Line 12:
| status = active
}}
'''libfixmath''' is a [[platform independent|platform-independent]] [[fixed-point arithmetic|fixed point]] maths library aimed at developers wanting to perform fast non-integer maths on platforms lacking a [[Floating Point Unit|FPU]]. It offers developers a similar interface to the standard [[Math.h|math.h]] functions for use on [[Q (number format)|Q16.16]] [[fixed-point arithmetic|fixed point]] numbers.
libfixmath has no external dependencies other than [[Stdint.h|stdint.h]] and a compiler which supports [[64-bit]] integer arithmetic (such as [[GNU Compiler Collection|GCC]]).<ref>{{cite web|url=http://code.google.com/p/libfixmath|title=libfixmath Project Page}}</ref>
Work is underway to remove the requirement for a [[64-bit]] capable [[compiler]] as many compilers for [[Microcontroller|microcontrollers]] and [[Digital signal processor|DSPs]] do not support [[64-bit]] arithmetic.<ref>{{cite web|url=http://code.google.com/p/libfixmath/issues/detail?id=4|title=64-bit Compiler Support Issues}}</ref>
 
Line 44:
|<code>fix16_tan</code> || [[tangent (trigonometric function)|tangent]]
|-
|<code>fix16_mul</code> || [[Multiplication|multiplication]]
|-
|<code>fix16_div</code> || [[Division (mathematics)|division]]
|-
|<code>fix16_sadd</code> || [[Saturation arithmetic|saturated]] [[Addition|addition]]
|-
|<code>fix16_smul</code> || [[Saturation arithmetic|saturated]] [[Multiplication|multiplication]]
|-
|<code>fix16_sdiv</code> || [[Saturation arithmetic|saturated]] [[Division (mathematics)|division]]