|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80757 - trunk/boost/thread/win32
From: vicente.botet_at_[hidden]
Date: 2012-09-29 12:53:11
Author: viboes
Date: 2012-09-29 12:53:11 EDT (Sat, 29 Sep 2012)
New Revision: 80757
URL: http://svn.boost.org/trac/boost/changeset/80757
Log:
Thread: rollback preceding change and apply patch spliting the assembles so that each instruction is on one line.
Text files modified:
trunk/boost/thread/win32/thread_primitives.hpp | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
Modified: trunk/boost/thread/win32/thread_primitives.hpp
==============================================================================
--- trunk/boost/thread/win32/thread_primitives.hpp (original)
+++ trunk/boost/thread/win32/thread_primitives.hpp 2012-09-29 12:53:11 EDT (Sat, 29 Sep 2012)
@@ -299,7 +299,7 @@
}
}
-#if (defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN)) && (_MSC_VER>=1400) && !defined(UNDER_CE)
+#if defined(BOOST_MSVC) && (_MSC_VER>=1400) && !defined(UNDER_CE)
namespace boost
{
@@ -332,7 +332,7 @@
}
}
#define BOOST_THREAD_BTS_DEFINED
-#elif defined(BOOST_MSVC) && defined(_M_IX86)
+#elif (defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN)) && defined(_M_IX86)
namespace boost
{
namespace detail
@@ -349,9 +349,13 @@
setc al;
};
#else
- bool ret=false;
+ bool ret;
__asm {
- mov eax,bit; mov edx,x; lock bts [edx],eax; setc al; mov ret, al
+ mov eax,bit
+ mov edx,x
+ lock bts [edx],eax
+ setc al
+ mov ret, al
};
return ret;
@@ -368,9 +372,13 @@
setc al;
};
#else
- bool ret=false;
+ bool ret;
__asm {
- mov eax,bit; mov edx,x; lock btr [edx],eax; setc al; mov ret, al
+ mov eax,bit
+ mov edx,x
+ lock btr [edx],eax
+ setc al
+ mov ret, al
};
return ret;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk