1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 05:02:27 +02:00
This commit is contained in:
Sascha Schumann
2003-06-06 12:12:25 +00:00
parent c8c45d14da
commit 3d5ecc112b

View File

@@ -19,11 +19,13 @@
#if defined(__i386__) && defined(__GNUC__)
#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
long __tmpvar; \
__asm__ ("imul %3,%0\n" \
"adc $0,%1" \
: "=r"(lval),"=r"(usedval) \
: "=r"(__tmpvar),"=r"(usedval) \
: "0"(a), "r"(b), "1"(0)); \
if (usedval) (dval) = (double) (a) * (double) (b); \
else (lval) = __tmpvar; \
} while (0)
#else