Difference between revisions of "Fixed Point"

From Free Pascal wiki
Jump to navigationJump to search
m
m
Line 1: Line 1:
 
Free Pascal doesn't provide built-in language 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 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, making a library of limited use.
+
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

Revision as of 08:08, 25 February 2021

Free Pascal doesn't provide built-in language support for Fixed-point type. However there are a number of 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