mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 01:59:31 +02:00
* frexp has out instead of var parameter
git-svn-id: trunk@2040 -
This commit is contained in:
parent
25bc4956a2
commit
4c3fb9ae00
rtl/inc
@ -45,9 +45,9 @@
|
||||
|
||||
{$ifndef SYSTEM_HAS_FREXP}
|
||||
{$define SYSTEM_HAS_FREXP}
|
||||
function c_frexp(x: double; var e: longint): double; cdecl; external 'c' name 'frexp';
|
||||
function c_frexp(x: double; out e: longint): double; cdecl; external 'c' name 'frexp';
|
||||
|
||||
function frexp(x:Real; var e:Integer ):Real; {$ifdef MATHINLINE}inline;{$endif}
|
||||
function frexp(x:Real; out e:Integer ):Real; {$ifdef MATHINLINE}inline;{$endif}
|
||||
var
|
||||
l: longint;
|
||||
begin
|
||||
|
@ -404,7 +404,7 @@ type
|
||||
|
||||
|
||||
{$ifndef SYSTEM_HAS_FREXP}
|
||||
function frexp(x:Real; var e:Integer ):Real;
|
||||
function frexp(x:Real; out e:Integer ):Real;
|
||||
{* frexp() extracts the exponent from x. It returns an integer *}
|
||||
{* power of two to expnt and the significand between 0.5 and 1 *}
|
||||
{* to y. Thus x = y * 2**expn. *}
|
||||
|
Loading…
Reference in New Issue
Block a user