dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 4beb58058c82711670fffae441c699ca507d59e2
Date: Fri, 11 Sep 2009 19:21:24 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".

The branch, master has been updated
       via  4beb58058c82711670fffae441c699ca507d59e2 (commit)
      from  1dd06b76e354c5c90c6ee590c48f218fea016e8e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=4beb58058c82711670fffae441c699ca507d59e2

commit 4beb58058c82711670fffae441c699ca507d59e2
Author: Klaus Treichel <address@hidden>
Date:   Fri Sep 11 21:20:58 2009 +0200

    Allow immediates in ILInterlockedAnd and ILInterlockedOr on x86 and x86_64.

diff --git a/ChangeLog b/ChangeLog
index dbd2f29..a52544e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,10 @@
 
        * support/interlocked_arm.h: Add interlocked functions for arm.
 
+       * support/interlocked_x86.h (ILInterlockedAnd, ILInterlockedOr):  Add
+       the "e" constraint to value so that gcc can use immediates directly
+       instead of having to load them into a register first.
+
 2009-09-10  Klaus Treichel  <address@hidden>
 
        Change internal organization of the interlocked functions.
diff --git a/support/interlocked_x86.h b/support/interlocked_x86.h
index 40171d7..c2f0e64 100644
--- a/support/interlocked_x86.h
+++ b/support/interlocked_x86.h
@@ -172,7 +172,7 @@ static IL_INLINE void ILInterlockedAnd(volatile ILUInt32 
*dest, ILUInt32 value)
                "lock;"
                "andl %1, %0"
                : "=m" (*dest)
-               : "r" (value), "m" (*dest)
+               : "er" (value), "m" (*dest)
                : "memory");
 }
 #define IL_HAVE_INTERLOCKED_AND 1
@@ -187,7 +187,7 @@ static IL_INLINE void ILInterlockedOr(volatile ILUInt32 
*dest, ILUInt32 value)
                "lock;"
                "orl %1, %0"
                : "=m" (*dest)
-               : "r" (value), "m" (*dest)
+               : "er" (value), "m" (*dest)
                : "memory");
 }
 #define IL_HAVE_INTERLOCKED_OR 1

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    4 ++++
 support/interlocked_x86.h |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]