Difference between revisions of "Fixed Point"
From Lazarus wiki
Jump to navigationJump to searchm |
m (Clarify fixed point maths :-) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | 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 |
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 |