source: trunk/Packages/Common/Int128.php

Last change on this file was 888, checked in by chronos, 2 years ago
  • Modified: Updated Common package to latest version.
  • Modified: Fixes related to PHP 8.x.
File size: 1.1 KB
Line 
1<?php
2
3function Int128New()
4{
5 return BigIntNew(INT128);
6}
7
8function Int128Add($A, $B)
9{
10 return BigIntAdd($A, $B);
11}
12
13function Int128Sub($A, $B)
14{
15 return BigIntSub($A, $B);
16}
17
18function Int128Equal($A, $B)
19{
20 return BigIntEqual($A, $B);
21}
22
23function Int128NotEqual($A, $B)
24{
25 return BigIntNotEqual($A, $B);
26}
27
28function Int128Greater($A, $B)
29{
30 return BigIntGreater($A, $B);
31}
32
33function Int128GreaterOrEqual($A, $B)
34{
35 return BigIntGreaterOrEqual($A, $B);
36}
37
38function Int128Lesser($A, $B)
39{
40 return BigIntLesser($A, $B);
41}
42
43function Int128LesserOrEqual($A, $B)
44{
45 return BigIntLesserOrEqual($A, $B);
46}
47
48function Int128And($A, $B)
49{
50 return BigIntAnd($A, $B);
51}
52
53function Int128Or($A, $B)
54{
55 return BigIntOr($A, $B);
56}
57
58function Int128Xor($A, $B)
59{
60 return BigIntXor($A, $B);
61}
62
63function Int128Shl($A, $B)
64{
65 return BigIntShl($A, $B);
66}
67
68function Int128Shr($A, $B)
69{
70 return BigIntShr($A, $B);
71}
72
73function Int128ToInt($A)
74{
75 return BigIntToInt($A);
76}
77
78function IntToInt128($A)
79{
80 return IntToBigInt($A, INT128);
81}
82
83function Int128ToHex($A)
84{
85 return BigIntToHex($A);
86}
87
88function HexToInt128($A)
89{
90 return HexToBigInt($A, INT128);
91}
92
Note: See TracBrowser for help on using the repository browser.