summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-01-14 19:51:34 +0100
committerErich Eckner <git@eckner.net>2017-01-14 19:51:34 +0100
commit966286432638d3b64e5ebc6c2ace8e5eddd56ce4 (patch)
tree6b9ed3089149182c4ecc48bf3a9203736e31e38a
parent3a09b78ce3bec52640c33d7257782014de890623 (diff)
downloadunits-966286432638d3b64e5ebc6c2ace8e5eddd56ce4.tar.xz
int64 in lowlevelunit
-rw-r--r--lowlevelunit.pas12
1 files changed, 12 insertions, 0 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas
index 60f9e9e..3445a13 100644
--- a/lowlevelunit.pas
+++ b/lowlevelunit.pas
@@ -9,10 +9,12 @@ uses
type
generic tArray<T> = array of T;
+ tInt64Array = specialize tArray<int64>;
tLongintArray = specialize tArray<longint>;
pTLongintArray = ^tLongintArray;
tSingleArray = specialize tArray<single>;
pTSingleArray = ^tSingleArray;
+ tInt64Point = array['x'..'y'] of int64;
tIntPoint = array['x'..'y'] of longint;
tExtPoint = array['x'..'y'] of extended;
t2x2Longint = array['x'..'y','x'..'y'] of longint;
@@ -38,6 +40,7 @@ type
tGenauigkeit = (gSingle,gDouble,gExtended);
operator = (x1,x2: t2x2Extended): boolean;
+operator = (x1,x2: tInt64Point): boolean;
operator = (x1,x2: tIntPoint): boolean;
operator = (x1,x2: tExtPoint): boolean;
@@ -124,6 +127,15 @@ begin
result:=result and (x1[c,d]=x2[c,d]);
end;
+operator = (x1,x2: tInt64Point): boolean;
+var
+ c: char;
+begin
+ result:=true;
+ for c:='x' to 'y' do
+ result:=result and (x1[c]=x2[c]);
+end;
+
operator = (x1,x2: tIntPoint): boolean;
var
c: char;