From: Sascha Schumann Date: Fri, 6 Jun 2003 12:12:25 +0000 (+0000) Subject: mfb #24025 fix X-Git-Tag: RELEASE_1_0_2~390 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d5ecc112b574bd82f677cf15d044098770d2c52;p=php mfb #24025 fix --- diff --git a/Zend/zend_multiply.h b/Zend/zend_multiply.h index be41e588c3..30433d77d8 100644 --- a/Zend/zend_multiply.h +++ b/Zend/zend_multiply.h @@ -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