[PHP-CVS] com php-src: fix assembly of safe_address() for x86 and x86_64: Zend/zend_alloc.c
Commit:97e9d01dc78b6cec8eb014484935c2d1ab8293fc Author:Nuno Lopes nlop...@php.net Wed, 3 Jul 2013 17:53:46 -0400 Parents: 675beb06a6ed8040303f21f55e4ce6d350f75a1a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=97e9d01dc78b6cec8eb014484935c2d1ab8293fc Log: fix assembly of safe_address() for x86 and x86_64 Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index c6aee57..383a1df 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2465,7 +2465,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) size_t res = nmemb; unsigned long overflow = 0; - __asm__ (mull %3\n\taddl %4,%0\n\tadcl %1,%1 + __asm__ (mull %3\n\taddl %4,%0\n\tadcl $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), @@ -2493,7 +2493,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) __asm__ (mul LP_SUFF %3\n\t add %4,%0\n\t - adc %1,%1 + adc $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] com php-src: fix assembly of safe_address() for x86 and x86_64: Zend/zend_alloc.c
Commit:40cbceaf71f3431b43c245704d82f06c8bb4c2de Author:Nuno Lopes nlop...@php.net Wed, 3 Jul 2013 17:53:46 -0400 Parents: 332e46b3aa00c1d5a8cfb4e9a42f2d1dfbe3603d Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=40cbceaf71f3431b43c245704d82f06c8bb4c2de Log: fix assembly of safe_address() for x86 and x86_64 Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index c6aee57..383a1df 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2465,7 +2465,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) size_t res = nmemb; unsigned long overflow = 0; - __asm__ (mull %3\n\taddl %4,%0\n\tadcl %1,%1 + __asm__ (mull %3\n\taddl %4,%0\n\tadcl $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), @@ -2493,7 +2493,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) __asm__ (mul LP_SUFF %3\n\t add %4,%0\n\t - adc %1,%1 + adc $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] com php-src: fix assembly of safe_address() for x86 and x86_64: Zend/zend_alloc.c
Commit:c652cc93ec5ce8f1833d023159804ebd56e1a94e Author:Nuno Lopes nlop...@php.net Wed, 3 Jul 2013 17:53:46 -0400 Parents: 7549beb1022c6821a279df03e0dfcbf0df5eef97 Branches: PHP-5.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c652cc93ec5ce8f1833d023159804ebd56e1a94e Log: fix assembly of safe_address() for x86 and x86_64 Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 0bbd59a..596c249 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2461,7 +2461,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) size_t res = nmemb; unsigned long overflow = 0; - __asm__ (mull %3\n\taddl %4,%0\n\tadcl %1,%1 + __asm__ (mull %3\n\taddl %4,%0\n\tadcl $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), @@ -2489,7 +2489,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) __asm__ (mul LP_SUFF %3\n\t add %4,%0\n\t - adc %1,%1 + adc $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] com php-src: fix assembly of safe_address() for x86 and x86_64: Zend/zend_alloc.c
Commit:e964817b244d091dc38f59f5d7f1735110b698af Author:Nuno Lopes nlop...@php.net Wed, 3 Jul 2013 18:02:28 -0400 Parents: 50ac53e1b109795e3abb92735a3a35cebcdd47a7 Branches: PHP-5.3 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e964817b244d091dc38f59f5d7f1735110b698af Log: fix assembly of safe_address() for x86 and x86_64 Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 02e84ee..e86b3e7 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2386,7 +2386,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) size_t res = nmemb; unsigned long overflow = 0; - __asm__ (mull %3\n\taddl %4,%0\n\tadcl %1,%1 + __asm__ (mull %3\n\taddl %4,%0\n\tadcl $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), @@ -2406,7 +2406,7 @@ static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) size_t res = nmemb; unsigned long overflow = 0; -__asm__ (mulq %3\n\taddq %4,%0\n\tadcq %1,%1 +__asm__ (mulq %3\n\taddq %4,%0\n\tadcq $0,%1 : =a(res), =d (overflow) : %0(res), rm(size), -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php