mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
[ci skip] Trim trailing whitespace in php_random.h
This commit is contained in:
parent
4164d2d567
commit
1e9280e035
1 changed files with 3 additions and 3 deletions
|
@ -107,7 +107,7 @@ static inline uint64_t php_random_uint128_lo(php_random_uint128_t num)
|
|||
static inline php_random_uint128_t php_random_uint128_constant(uint64_t hi, uint64_t lo)
|
||||
{
|
||||
php_random_uint128_t r;
|
||||
|
||||
|
||||
r.hi = hi;
|
||||
r.lo = lo;
|
||||
|
||||
|
@ -117,7 +117,7 @@ static inline php_random_uint128_t php_random_uint128_constant(uint64_t hi, uint
|
|||
static inline php_random_uint128_t php_random_uint128_add(php_random_uint128_t num1, php_random_uint128_t num2)
|
||||
{
|
||||
php_random_uint128_t r;
|
||||
|
||||
|
||||
r.lo = (num1.lo + num2.lo);
|
||||
r.hi = (num1.hi + num2.hi + (r.lo < num1.lo));
|
||||
|
||||
|
@ -133,7 +133,7 @@ static inline php_random_uint128_t php_random_uint128_multiply(php_random_uint12
|
|||
y0 = num2.lo & 0xffffffffULL,
|
||||
y1 = num2.lo >> 32,
|
||||
z0 = (((x1 * y0) + (x0 * y0 >> 32)) & 0xffffffffULL) + x0 * y1;
|
||||
|
||||
|
||||
r.hi = num1.hi * num2.lo + num1.lo * num2.hi;
|
||||
r.lo = num1.lo * num2.lo;
|
||||
r.hi += x1 * y1 + ((x1 * y0 + (x0 * y0 >> 32)) >> 32) + (z0 >> 32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue