forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gmp.php
676 lines (629 loc) · 23.1 KB
/
gmp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
<?php
// Start of gmp v.
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Create GMP number
* @link http://php.net/manual/en/function.gmp-init.php
* @param mixed $number <p>
* An integer or a string. The string representation can be decimal,
* hexadecimal or octal.
* </p>
* @param int $base [optional] <p>
* The base.
* </p>
* <p>
* The base may vary from 2 to 36. If base is 0 (default value), the
* actual base is determined from the leading characters: if the first
* two characters are 0x or 0X,
* hexadecimal is assumed, otherwise if the first character is "0",
* octal is assumed, otherwise decimal is assumed.
* </p>
* @return resource A GMP number resource.
*/
function gmp_init ($number, $base = 0) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Convert GMP number to integer
* @link http://php.net/manual/en/function.gmp-intval.php
* @param resource $gmpnumber <p>
* A GMP number.
* </p>
* @return int An integer value of <i>gmpnumber</i>.
*/
function gmp_intval ($gmpnumber) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Convert GMP number to string
* @link http://php.net/manual/en/function.gmp-strval.php
* @param resource|string $gmpnumber <p>
* The GMP number that will be converted to a string.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $base [optional] <p>
* The base of the returned number. The default base is 10.
* Allowed values for the base are from 2 to 62 and -2 to -36.
* </p>
* @return string The number, as a string.
*/
function gmp_strval ($gmpnumber, $base = 10) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Add numbers
* @link http://php.net/manual/en/function.gmp-add.php
* @param resource|string $a <p>
* A number that will be added.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b <p>
* A number that will be added.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number representing the sum of the arguments.
*/
function gmp_add ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Subtract numbers
* @link http://php.net/manual/en/function.gmp-sub.php
* @param resource|string $a <p>
* The number being subtracted from.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b <p>
* The number subtracted from <i>a</i>.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number resource.
*/
function gmp_sub ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Multiply numbers
* @link http://php.net/manual/en/function.gmp-mul.php
* @param resource|string $a <p>
* A number that will be multiplied by <i>b</i>.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b <p>
* A number that will be multiplied by <i>a</i>.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number resource.
*/
function gmp_mul ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Divide numbers and get quotient and remainder
* @link http://php.net/manual/en/function.gmp-div-qr.php
* @param resource|string $n <p>
* The number being divided.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $d <p>
* The number that <i>n</i> is being divided by.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $round [optional] <p>
* See the <b>gmp_div_q</b> function for description
* of the <i>round</i> argument.
* </p>
* @return array an array, with the first
* element being [n/d] (the integer result of the
* division) and the second being (n - [n/d] * d)
* (the remainder of the division).
*/
function gmp_div_qr ($n, $d, $round = GMP_ROUND_ZERO) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Divide numbers
* @link http://php.net/manual/en/function.gmp-div-q.php
* @param resource|string $a <p>
* The number being divided.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b <p>
* The number that <i>a</i> is being divided by.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $round [optional] <p>
* The result rounding is defined by the
* <i>round</i>, which can have the following
* values:
* <b>GMP_ROUND_ZERO</b>: The result is truncated
* towards 0.
* @return resource A GMP number resource.
*/
function gmp_div_q ($a, $b, $round = GMP_ROUND_ZERO) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Remainder of the division of numbers
* @link http://php.net/manual/en/function.gmp-div-r.php
* @param resource|string $n <p>
* The number being divided.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $d <p>
* The number that <i>n</i> is being divided by.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $round [optional] <p>
* See the <b>gmp_div_q</b> function for description
* of the <i>round</i> argument.
* </p>
* @return resource The remainder, as a GMP number.
*/
function gmp_div_r ($n, $d, $round = GMP_ROUND_ZERO) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Divide numbers
* @link http://php.net/manual/en/function.gmp-div-q.php
* @param resource|string|GMP $a <p>
* The number being divided.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string|GMP $b <p>
* The number that <i>a</i> is being divided by.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $round [optional] <p>
* The result rounding is defined by the
* <i>round</i>, which can have the following
* values:
* <b>GMP_ROUND_ZERO</b>: The result is truncated
* towards 0.
* @return resource A GMP number resource.
*/
function gmp_div ($a, $b, $round = GMP_ROUND_ZERO) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Modulo operation
* @link http://php.net/manual/en/function.gmp-mod.php
* @param resource|string $n It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $d <p>
* The modulo that is being evaluated.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number resource.
*/
function gmp_mod ($n, $d) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Exact division of numbers
* @link http://php.net/manual/en/function.gmp-divexact.php
* @param resource|string|GMP $n <p>
* The number being divided.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string|GMP $d <p>
* The number that <i>a</i> is being divided by.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number resource.
*/
function gmp_divexact ($n, $d) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Negate number
* @link http://php.net/manual/en/function.gmp-neg.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource -<i>a</i>, as a GMP number.
*/
function gmp_neg ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Absolute value
* @link http://php.net/manual/en/function.gmp-abs.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource the absolute value of <i>a</i>, as a GMP number.
*/
function gmp_abs ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Factorial
* @link http://php.net/manual/en/function.gmp-fact.php
* @param resource|string $a <p>
* The factorial number.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number resource.
*/
function gmp_fact ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Calculate square root
* @link http://php.net/manual/en/function.gmp-sqrt.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource The integer portion of the square root, as a GMP number.
*/
function gmp_sqrt ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Square root with remainder
* @link http://php.net/manual/en/function.gmp-sqrtrem.php
* @param resource|string $a <p>
* The number being square rooted.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return array array where first element is the integer square root of
* <i>a</i> and the second is the remainder
* (i.e., the difference between <i>a</i> and the
* first element squared).
*/
function gmp_sqrtrem ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Raise number into power
* @link http://php.net/manual/en/function.gmp-pow.php
* @param resource|string $base <p>
* The base number.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $exp <p>
* The positive power to raise the <i>base</i>.
* </p>
* @return resource The new (raised) number, as a GMP number. The case of
* 0^0 yields 1.
*/
function gmp_pow ($base, $exp) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Raise number into power with modulo
* @link http://php.net/manual/en/function.gmp-powm.php
* @param resource|string $base <p>
* The base number.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $exp <p>
* The positive power to raise the <i>base</i>.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $mod <p>
* The modulo.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource The new (raised) number, as a GMP number.
*/
function gmp_powm ($base, $exp, $mod) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Perfect square check
* @link http://php.net/manual/en/function.gmp-perfect-square.php
* @param resource|string $a <p>
* The number being checked as a perfect square.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return bool <b>TRUE</b> if <i>a</i> is a perfect square,
* <b>FALSE</b> otherwise.
*/
function gmp_perfect_square ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Check if number is "probably prime"
* @link http://php.net/manual/en/function.gmp-prob-prime.php
* @param resource|string $a <p>
* The number being checked as a prime.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $reps [optional] <p>
* Reasonable values
* of <i>reps</i> vary from 5 to 10 (default being
* 10); a higher value lowers the probability for a non-prime to
* pass as a "probable" prime.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return int If this function returns 0, <i>a</i> is
* definitely not prime. If it returns 1, then
* <i>a</i> is "probably" prime. If it returns 2,
* then <i>a</i> is surely prime.
*/
function gmp_prob_prime ($a, $reps = 10) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Calculate GCD
* @link http://php.net/manual/en/function.gmp-gcd.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A positive GMP number that divides into both
* <i>a</i> and <i>b</i>.
*/
function gmp_gcd ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Calculate GCD and multipliers
* @link http://php.net/manual/en/function.gmp-gcdext.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return array An array of GMP numbers.
*/
function gmp_gcdext ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Inverse by modulo
* @link http://php.net/manual/en/function.gmp-invert.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number on success or <b>FALSE</b> if an inverse does not exist.
*/
function gmp_invert ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Jacobi symbol
* @link http://php.net/manual/en/function.gmp-jacobi.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $p It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* <p>
* Should be odd and must be positive.
* </p>
* @return int A GMP number resource.
*/
function gmp_jacobi ($a, $p) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Legendre symbol
* @link http://php.net/manual/en/function.gmp-legendre.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $p It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* <p>
* Should be odd and must be positive.
* </p>
* @return int A GMP number resource.
*/
function gmp_legendre ($a, $p) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Compare numbers
* @link http://php.net/manual/en/function.gmp-cmp.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return int a positive value if a > b, zero if
* a = b and a negative value if a <
* b.
*/
function gmp_cmp ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Sign of number
* @link http://php.net/manual/en/function.gmp-sign.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return int 1 if <i>a</i> is positive,
* -1 if <i>a</i> is negative,
* and 0 if <i>a</i> is zero.
*/
function gmp_sign ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Random number
* @link http://php.net/manual/en/function.gmp-random.php
* @param int $limiter [optional] <p>
* The limiter.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A random GMP number.
*/
function gmp_random ($limiter = 20) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Bitwise AND
* @link http://php.net/manual/en/function.gmp-and.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number representing the bitwise AND comparison.
*/
function gmp_and ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Bitwise OR
* @link http://php.net/manual/en/function.gmp-or.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number resource.
*/
function gmp_or ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Calculates one's complement
* @link http://php.net/manual/en/function.gmp-com.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource the one's complement of <i>a</i>, as a GMP number.
*/
function gmp_com ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Bitwise XOR
* @link http://php.net/manual/en/function.gmp-xor.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param resource|string $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource A GMP number resource.
*/
function gmp_xor ($a, $b) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Set bit
* @link http://php.net/manual/en/function.gmp-setbit.php
* @param resource|string $a <p>
* The number being set to.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $index <p>
* The set bit.
* </p>
* @param bool $set_clear [optional] <p>
* Defines if the bit is set to 0 or 1. By default the bit is set to
* 1. Index starts at 0.
* </p>
* @return void A GMP number resource.
*/
function gmp_setbit (&$a, $index, $set_clear = true) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Clear bit
* @link http://php.net/manual/en/function.gmp-clrbit.php
* @param resource|string|GMP $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $index It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return void A GMP number resource.
*/
function gmp_clrbit (&$a, $index) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Scan for 0
* @link http://php.net/manual/en/function.gmp-scan0.php
* @param resource|string $a <p>
* The number to scan.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $start <p>
* The starting bit.
* </p>
* @return int the index of the found bit, as an integer. The
* index starts from 0.
*/
function gmp_scan0 ($a, $start) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Scan for 1
* @link http://php.net/manual/en/function.gmp-scan1.php
* @param resource|string $a <p>
* The number to scan.
* </p>
* It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $start <p>
* The starting bit.
* </p>
* @return int the index of the found bit, as an integer.
* If no set bit is found, -1 is returned.
*/
function gmp_scan1 ($a, $start) {}
/**
* (PHP 5 >= 5.3.0)<br/>
* Tests if a bit is set
* @link http://php.net/manual/en/function.gmp-testbit.php
* @param resource|string|GMP $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @param int $index <p>
* The bit to test
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function gmp_testbit ($a, $index) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Population count
* @link http://php.net/manual/en/function.gmp-popcount.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return int The population count of <i>a</i>, as an integer.
*/
function gmp_popcount ($a) {}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Hamming distance
* @link http://php.net/manual/en/function.gmp-hamdist.php
* @param resource|string|GMP $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* <p>
* It should be positive.
* </p>
* @param resource|string|GMP $b It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* <p>
* It should be positive.
* </p>
* @return int A GMP number resource.
*/
function gmp_hamdist ($a, $b) {}
/**
* (PHP 5 >= 5.2.0)<br/>
* Find next prime number
* @link http://php.net/manual/en/function.gmp-nextprime.php
* @param resource|string $a It can be either a GMP number resource, or a
* numeric string given that it is possible to convert the latter to a number.</p>
* @return resource Return the next prime number greater than <i>a</i>,
* as a GMP number.
*/
function gmp_nextprime ($a) {}
define ('GMP_ROUND_ZERO', 0);
define ('GMP_ROUND_PLUSINF', 1);
define ('GMP_ROUND_MINUSINF', 2);
/**
* The GMP library version
* @link http://php.net/manual/en/gmp.constants.php
*/
define ('GMP_VERSION', "");
class GMP implements Serializable {
/**
* (PHP 5 >= 5.1.0)<br/>
* String representation of object
* @link http://php.net/manual/en/serializable.serialize.php
* @return string the string representation of the object or null
*/
public function serialize() {}
/**
* (PHP 5 >= 5.1.0)<br/>
* Constructs the object
* @link http://php.net/manual/en/serializable.unserialize.php
* @param string $serialized <p>
* The string representation of the object.
* </p>
* @return void
*/
public function unserialize($serialized) {}
}
// End of gmp v.
?>