|
@@ 214-219 (lines=6) @@
|
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
// x64, bcmath |
| 214 |
|
if (function_exists('bcmul')) { |
| 215 |
|
$h = bcdiv($value, 4294967296, 0); |
| 216 |
|
$l = bcmod($value, 4294967296); |
| 217 |
|
return pack('NN', $h, $l); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
// x64, no-bcmath |
| 221 |
|
$p = max(0, strlen($value) - 13); |
| 222 |
|
$lo = (int)substr($value, $p); |
|
@@ 238-243 (lines=6) @@
|
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
// x32, bcmath |
| 238 |
|
if (function_exists('bcmul')) { |
| 239 |
|
$h = bcdiv($value, '4294967296', 0); |
| 240 |
|
$l = bcmod($value, '4294967296'); |
| 241 |
|
return pack('NN', (float)$h, (float)$l); // conversion to float is intentional; int would lose 31st bit |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
// x32, no-bcmath |
| 245 |
|
$p = max(0, strlen($value) - 13); |
| 246 |
|
$lo = (float)substr($value, $p); |