florian
|
1f8c547561
* fix exception generation in ln(...), resolves #38832
|
4 years ago |
florian
|
4995677b0f
--- Zusammenführung
|
4 years ago |
florian
|
781ecf4a59
* modified patch by Bart Broersma to resolves #33932: fixes compilation error with FPC_SOFT_FPUX80 in TExtended80Rec.BuildUp
|
7 years ago |
florian
|
2406bd052e
* by default, TExtended80Rec.Mantissa should not return the hidden bit (the binary representation of the data type contains it always
|
7 years ago |
michael
|
a9205c9fba
* Fix bug ID #32837, correct Mantissa and Fraction in float helpers, patch from Bart Broersma
|
7 years ago |
pierre
|
82dce8d7e1
Add FPC_SOFT_FPUX80 conditional code for 80-bit float type using soft float unit
|
7 years ago |
sergei
|
feeb50be4f
* Changed signature of frexp() to match one in Math unit, so eventually a duplicate implementation in Math can be removed. Currently this frexp() remains private to unit System.
|
9 years ago |
sergei
|
92447a9a20
* Moved local typed constants having the same value in several routines to global scope.
|
10 years ago |
nickysn
|
4fe1ec9c51
* fixed TSingleRec.SetSign on 16 and 8-bit CPUs
|
10 years ago |
florian
|
7180d184c5
+ implements TExtended80Rec, TDoubleRec, TSingleRec
|
10 years ago |
sergei
|
6807812997
* Avoid promotion to 64 bits due to mixing signed and unsigned expressions.
|
11 years ago |
sergei
|
f767d9017c
* Fixed sin(-0.0) to return -0.0 (was returning 0.0)
|
11 years ago |
sergei
|
65f75791ea
* rem_pio2: Return NaN for infinite or NaN arguments, so it is propagated into return values of sin(),cos() and other (not yet existing) callers.
|
11 years ago |
sergei
|
57c762c8d2
+ Inserted license header for AMath routines.
|
11 years ago |
sergei
|
bd58adfcc9
+ Added credits for functions reused from AMath/DAMath libraries.
|
11 years ago |
sergei
|
217bac7a0b
- Removed fpc_pi_real compilerproc, it is no longer used. At least two releases (2.6.2 and 2.6.4) emit Pi directly as a constant.
|
11 years ago |
sergei
|
14ee9d52aa
* Made constants DP1,DP2,DP3 local to function rem_pio2, because their values are correct only for double-precision calculations.
|
11 years ago |
sergei
|
94a045aa3d
* Moved declarations of TFPURoundingMode,TFPUExceptionMask and TFPUPrecisionMode to System unit. Declarations in Math unit changed to aliases.
|
11 years ago |
sergei
|
dcb46051c4
* Get rid of last softfloat dependencies in genmath.inc. Replaced remaining calls to float_raise with expressions which generate appropriate floating-point exceptions at runtime. This is probably somewhat slower on actual softfloat targets, but the change only affects exceptional control flow, so not a significant issue.
|
11 years ago |
sergei
|
fffc317759
* Replaced fpc_round_real with new implementation, having the following important properties:
|
11 years ago |
sergei
|
5f985602fb
* Replaced fpc_ln_real with modern port from fdlibm/uclibc, it has even better accuracy than damath library.
|
11 years ago |
sergei
|
aadb407e31
* Convert int64 to double in more straightforward way.
|
11 years ago |
sergei
|
6dd845a183
* Removed TTabCoef type and unused zero members in coefficient arrays (the actual number of coefficients is passed to polevl/p1evl anyways).
|
11 years ago |
Jonas Maebe
|
bf59a848b4
* fixed compilation of genmath.inc for the JVM target. In the future, please
|
11 years ago |
nickysn
|
779b92459e
* fixed ldexp() on 16/8-bit CPUs. Among other things, this fixes sin() and cos()
|
11 years ago |
sergei
|
472b82c09a
* Removed 'absolute'-style aliasing records to floating-point variables, because it causes internal compiler error on some targets.
|
11 years ago |
sergei
|
b48ac658fb
+ Payne/Hanek argument reduction routine, improves accuracy of generic sin/cos functions over larger argument range. Tested on x86_64-win64 and mipsel-linux.
|
11 years ago |
sergei
|
949b994a68
- Got rid of "goto".
|
11 years ago |
sergei
|
4f0b3f61ec
* fpc_trunc_real: explicitly cast float64.high and float32 to longint, fixes test suite regressions on softfloat targets. These targets have different definitions of float64/float32 (with unsigned fields), causing comparisons like "float64.high<0" to be optimized out.
|
11 years ago |
sergei
|
897c8b8f7b
* Cleanup fpc_trunc_real implementation.
|
11 years ago |