14#pragma runtime_checks("s", off)
17#define ok_eq_print(value, expected, spec) ok((value) == (expected), #value " = " spec ", expected " spec "\n", value, expected)
18#define ok_eq_hex(value, expected) ok_eq_print(value, expected, "%lx")
19#define ok_eq_hex64(value, expected) ok_eq_print(value, expected, "%I64x")
20#define ok_eq_xmm(value, expected) ok((value).Low == (expected).Low, #value " = %I64x'%08I64x, expected %I64x'%08I64x\n", (value).Low, (value).High, (expected).Low, (expected).High)
23#define NTC_SEGMENT_BITS (0xFFFF)
24#define NTC_EFLAGS_BITS (0x3C0CD5)
35 unsigned int nRandMax;
36 unsigned int nRandMaxBits;
40 for(nRandMaxBits = 0; nRandMax != 0; nRandMax >>= 1, ++ nRandMaxBits);
53 b = (
unsigned char *)
p;
54 for(
i = 0;
i <
n; ++
i)
84 ok((pContext->
SegGs & NTC_SEGMENT_BITS) ==
88 ok((pContext->
SegFs & NTC_SEGMENT_BITS) ==
92 ok((pContext->
SegEs & NTC_SEGMENT_BITS) ==
96 ok((pContext->
SegDs & NTC_SEGMENT_BITS) ==
122 ok((pContext->
SegCs & NTC_SEGMENT_BITS) ==
126 ok((pContext->
EFlags & NTC_EFLAGS_BITS) ==
130 ok((pContext->
SegSs & NTC_SEGMENT_BITS) ==
177 ((_JUMP_BUFFER*)&
jmpbuf)->Frame = 0;
223#elif defined(_M_AMD64)
230 Registers[
i] = randULONG64();
237 Registers[
i] = randULONG64();
259 ok(0,
"should never get here\n");
#define ALIGN_DOWN_BY(size, align)
static unsigned int nRandBytes
#define ok_eq_hex(value, expected)
#define ok_eq_hex64(value, expected)
static ULONG randULONG(void)
static void randbytes(void *p, size_t n)
static int initrand(void)
#define ok_eq_xmm(value, expected)
static CONTEXT continueContext
BOOL WINAPI GetThreadContext(IN HANDLE hThread, OUT LPCONTEXT lpContext)
#define check(expected, result)
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void __cdecl srand(_In_ unsigned int _Seed)
_Check_return_ int __cdecl rand(void)
#define RtlFillMemory(Dest, Length, Fill)
unsigned __int64 * PULONG64
#define CONTEXT_DEBUG_REGISTERS
NTSTATUS NTAPI NtContinue(IN PCONTEXT Context, IN BOOLEAN TestAlert)
HANDLE WINAPI GetCurrentThread(void)