Difference between revisions of "Fixed Point"

From Free Pascal wiki
Jump to navigationJump to search
(Created page with "FreePascal doesn't provide language built-in support for Fixed-point type. However there are a number of libraries available {|class="wikitable !Library !Notes |- |AFP |http...")
 
m (Clarify fixed point maths :-)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
FreePascal doesn't provide language built-in support for Fixed-point type. However there are a number of libraries available  
+
Free Pascal doesn't provide built-in language support for Fixed-point type. However there are a number of fixed point maths libraries available.
 +
 
 +
Due to the potential optimization of a certain operations (i.e. division or square root) the code might contain CPU specific inline assembly restricting the use of the library.
 +
 
 
{|class="wikitable
 
{|class="wikitable
 
!Library
 
!Library
 +
!CPU Restrictions
 
!Notes
 
!Notes
 
|-
 
|-
 
|AFP  
 
|AFP  
 +
|
 
|https://community.atmel.com/projects/afp-arbitrary-fixed-point-lib
 
|https://community.atmel.com/projects/afp-arbitrary-fixed-point-lib
 
|-
 
|-
 
|FPMath v0.1 converted to Pascal  
 
|FPMath v0.1 converted to Pascal  
 +
|x86_64 only
 
|https://forum.lazarus.freepascal.org/index.php?topic=15895.0 by Jameel halabi
 
|https://forum.lazarus.freepascal.org/index.php?topic=15895.0 by Jameel halabi
 
|}
 
|}
 
[[Category:Libraries]]
 
[[Category:Libraries]]

Latest revision as of 11:41, 25 February 2021

Free Pascal doesn't provide built-in language support for Fixed-point type. However there are a number of fixed point maths libraries available.

Due to the potential optimization of a certain operations (i.e. division or square root) the code might contain CPU specific inline assembly restricting the use of the library.

Library CPU Restrictions Notes
AFP https://community.atmel.com/projects/afp-arbitrary-fixed-point-lib
FPMath v0.1 converted to Pascal x86_64 only https://forum.lazarus.freepascal.org/index.php?topic=15895.0 by Jameel halabi