Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78127 - trunk/libs/context/src
From: oliver.kowalke_at_[hidden]
Date: 2012-04-22 04:43:02


Author: olli
Date: 2012-04-22 04:43:01 EDT (Sun, 22 Apr 2012)
New Revision: 78127
URL: http://svn.boost.org/trac/boost/changeset/78127

Log:
context: use bitwise logical AND instead shift operators in align_stack

Text files modified:
   trunk/libs/context/src/fcontext.cpp | 3 +--
   1 files changed, 1 insertions(+), 2 deletions(-)

Modified: trunk/libs/context/src/fcontext.cpp
==============================================================================
--- trunk/libs/context/src/fcontext.cpp (original)
+++ trunk/libs/context/src/fcontext.cpp 2012-04-22 04:43:01 EDT (Sun, 22 Apr 2012)
@@ -23,8 +23,7 @@
 {
         void * base = vp;
     if ( 0 != ( ( ( uintptr_t) base) & 15) )
- base = ( char * )(
- ( ( ( ( uintptr_t) base) - 16) >> 4) << 4);
+ base = ( char * ) ( ( ( ( uintptr_t) base) - 15) & ~0x0F);
         return base;
 }
 


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