mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
Undo r26482 change, waste more stack space.
svn path=/trunk/; revision=26483
This commit is contained in:
parent
1abb769823
commit
f0f64567fa
1 changed files with 11 additions and 5 deletions
|
@ -106,9 +106,15 @@ typedef struct
|
||||||
//
|
//
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
||||||
#define DEFINE_WAIT_BLOCK(x) \
|
#define DEFINE_WAIT_BLOCK(x) \
|
||||||
PEX_PUSH_LOCK_WAIT_BLOCK x = __builtin_alloca(sizeof(EX_PUSH_LOCK_WAIT_BLOCK));
|
struct _AlignHack \
|
||||||
|
{ \
|
||||||
|
UCHAR Hack[15]; \
|
||||||
|
EX_PUSH_LOCK_WAIT_BLOCK UnalignedBlock; \
|
||||||
|
} WaitBlockBuffer; \
|
||||||
|
PEX_PUSH_LOCK_WAIT_BLOCK x = (PEX_PUSH_LOCK_WAIT_BLOCK) \
|
||||||
|
((ULONG_PTR)&WaitBlockBuffer.UnalignedBlock &~ 0xF);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -116,8 +122,8 @@ typedef struct
|
||||||
// local variable (the actual pointer) away, so we don't take any perf hit
|
// local variable (the actual pointer) away, so we don't take any perf hit
|
||||||
// by doing this.
|
// by doing this.
|
||||||
//
|
//
|
||||||
#define DEFINE_WAIT_BLOCK(x) \
|
#define DEFINE_WAIT_BLOCK(x) \
|
||||||
EX_PUSH_LOCK_WAIT_BLOCK WaitBlockBuffer; \
|
EX_PUSH_LOCK_WAIT_BLOCK WaitBlockBuffer; \
|
||||||
PEX_PUSH_LOCK_WAIT_BLOCK x = &WaitBlockBuffer;
|
PEX_PUSH_LOCK_WAIT_BLOCK x = &WaitBlockBuffer;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue