From 8be34c47b86dcbe1d6366c884d01c9fa2e8ccdff Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sat, 22 Apr 2006 18:47:00 +0000 Subject: [PATCH] * Apply patch for x86_64 from mainline: 2005-12-02 Bruno Haible * src/base/cl_low.h (mulu64) [x86_64]: Change asm restriction, since mulq doesn't accept immediate arguments. --- ChangeLog | 7 +++++++ src/base/cl_low.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 739fd78..7a1ba0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-04-22 Richard B. Kreckel + + * Apply patch for x86_64 from mainline: + 2005-12-02 Bruno Haible + * src/base/cl_low.h (mulu64) [x86_64]: Change asm restriction, + since mulq doesn't accept immediate arguments. + 2005-12-17 Richard B. Kreckel * Branched cln_1-1. This is the maintenance branch. It is for diff --git a/src/base/cl_low.h b/src/base/cl_low.h index 15d8519..5421b83 100644 --- a/src/base/cl_low.h +++ b/src/base/cl_low.h @@ -356,7 +356,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2) var register uint64 _lo; \ __asm__("mulq %2" \ : "=d" /* %rdx */ (_hi), "=a" /* %rax */ (_lo) \ - : "g" ((uint64)(x)), "1" /* %rax */ ((uint64)(y)) \ + : "rm" ((uint64)(x)), "1" /* %rax */ ((uint64)(y)) \ ); \ hi_zuweisung _hi; lo_zuweisung _lo; \ }) -- 2.49.0