|
@@ -510,10 +510,9 @@ function norm(const data : array of Extended) : float;
|
|
|
function norm(const data : PExtended; Const N : Integer) : float;
|
|
|
{$endif FPC_HAS_TYPE_EXTENDED}
|
|
|
|
|
|
-function ifthen(val:boolean;const iftrue:integer; const iffalse:integer= 0) :integer; inline;
|
|
|
-function ifthen(val:boolean;const iftrue:int64 ; const iffalse:int64 = 0) :int64; inline;
|
|
|
-function ifthen(val:boolean;const iftrue:double ; const iffalse:double =0.0):double; inline;
|
|
|
-function ifthen(val:boolean;const iftrue:String ; const iffalse:String ='') :String; inline;
|
|
|
+function ifthen(val:boolean;const iftrue:integer; const iffalse:integer= 0) :integer; inline; overload;
|
|
|
+function ifthen(val:boolean;const iftrue:int64 ; const iffalse:int64 = 0) :int64; inline; overload;
|
|
|
+function ifthen(val:boolean;const iftrue:double ; const iffalse:double =0.0):double; inline; overload;
|
|
|
|
|
|
function CompareValue ( const A, B : Integer) : TValueRelationship; inline;
|
|
|
function CompareValue ( const A, B : Int64) : TValueRelationship; inline;
|
|
@@ -2240,11 +2239,6 @@ begin
|
|
|
if val then result:=iftrue else result:=iffalse;
|
|
|
end;
|
|
|
|
|
|
-function ifthen(val:boolean;const iftrue:String ; const iffalse:String ='') :String; inline;
|
|
|
-begin
|
|
|
- if val then result:=iftrue else result:=iffalse;
|
|
|
-end;
|
|
|
-
|
|
|
// dilemma here. asm can do the two comparisons in one go?
|
|
|
// but pascal is portable and can be i inline;ed. Ah well, we need purepascal's anyway:
|
|
|
function CompareValue ( const A, B : Integer) : TValueRelationship;
|