com php-src: force the multiply macros to use zend_int_t: Zend/zend_multiply.h
| From: | Anatol Belski | Date: | Mon, 28 Oct 2013 09:26:39 +0000 |
| Subject: | com php-src: force the multiply macros to use zend_int_t: Zend/zend_multiply.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73806@lists.php.net to get a copy of this message | ||
Commit: 0c21ecf1591f5125ede010e62f115a6f052188ae
Author: Anatol Belski <ab@php.net> Mon, 28 Oct 2013 10:26:39 +0100
Parents: 3889019638116f6f158723fe543dc8bfaa9f63cc
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0c21ecf1591f5125ede010e62f115a6f052188ae
Log:
force the multiply macros to use zend_int_t
Changed paths:
M Zend/zend_multiply.h
Diff:
diff --git a/Zend/zend_multiply.h b/Zend/zend_multiply.h
index 050ff31...be60cdf 100644
--- a/Zend/zend_multiply.h
+++ b/Zend/zend_multiply.h
@@ -22,7 +22,7 @@
#if defined(__i386__) && defined(__GNUC__)
#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
- long __tmpvar; \
+ zend_int_t __tmpvar; \
__asm__ ("imul %3,%0\n" \
"adc $0,%1" \
: "=r"(__tmpvar),"=r"(usedval) \
@@ -34,7 +34,7 @@
#elif defined(__x86_64__) && defined(__GNUC__)
#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
- long __tmpvar; \
+ zend_int_t __tmpvar; \
__asm__ ("imul %3,%0\n" \
"adc $0,%1" \
: "=r"(__tmpvar),"=r"(usedval) \
@@ -46,7 +46,7 @@
#elif defined(__arm__) && defined(__GNUC__)
#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
- long __tmpvar; \
+ zend_int_t __tmpvar; \
__asm__("smull %0, %1, %2, %3\n" \
"sub %1, %1, %0, asr #31" \
: "=r"(__tmpvar), "=r"(usedval) \
@@ -58,7 +58,7 @@
#elif defined(__aarch64__) && defined(__GNUC__)
#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
- long __tmpvar; \
+ zend_int_t __tmpvar; \
__asm__("mul %0, %2, %3\n" \
"smulh %1, %2, %3\n" \
"sub %1, %1, %0, asr #63\n" \
@@ -68,7 +68,7 @@
else (lval) = __tmpvar; \
} while (0)
-#elif defined(PHP_WIN32) && defined(_WIN32)
+#elif defined(ZEND_WIN32)
#define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
zend_int_t __lres = (a) * (b); \