php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_multiply.h File Reference
#include "zend_portability.h"

Go to the source code of this file.

Macros

#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval)
 

Macro Definition Documentation

◆ ZEND_SIGNED_MULTIPLY_LONG

#define ZEND_SIGNED_MULTIPLY_LONG ( a,
b,
lval,
dval,
usedval )
Value:
do { \
int64_t __result = (int64_t) (a) * (int64_t) (b); \
if (__result > ZEND_LONG_MAX || __result < ZEND_LONG_MIN) { \
(dval) = (double) __result; \
(usedval) = 1; \
} else { \
(lval) = (long) __result; \
(usedval) = 0; \
} \
} while (0)
$obj a
Definition test.php:84
#define ZEND_LONG_MIN
Definition zend_long.h:46
#define ZEND_LONG_MAX
Definition zend_long.h:45
#define dval(x)

Definition at line 142 of file zend_multiply.h.