13#if !defined(BEGIN_PRAGMA_OPTIMIZE_DISABLE)
14#define BEGIN_PRAGMA_OPTIMIZE_DISABLE(flags, bug, reason) \
15 __pragma(optimize(flags, off))
16#define BEGIN_PRAGMA_OPTIMIZE_ENABLE(flags, bug, reason) \
17 __pragma(optimize(flags, on))
18#define END_PRAGMA_OPTIMIZE() \
19 __pragma(optimize("", on))
29 #define __fileDECL __clrcall
31 #define __fileDECL __cdecl
37 #define __COMPARE(context, p1, p2) comp(context, p1, p2)
38 #define __SHORTSORT(lo, hi, width, comp, context) shortsort_s(lo, hi, width, comp, context);
40 #define __COMPARE(context, p1, p2) comp(p1, p2)
41 #define __SHORTSORT(lo, hi, width, comp, context) shortsort(lo, hi, width, comp);
47#ifndef _QSORT_SWAP_DEFINED
48#define _QSORT_SWAP_DEFINED
79 int (
__fileDECL* comp)(
void*,
void const*,
void const*),
87 int (
__fileDECL* comp)(
void const*,
void const*)
95 __crt_state_management::scoped_global_state_reset saved_state;
138#define STKSIZ (8 * sizeof(void*) - 2)
160 int (
__fileDECL*
const comp)(
void*,
void const*,
void const*),
168 int (
__fileDECL*
const comp)(
void const*,
void const*)
186 char* lo =
static_cast<char*
>(
base);
195 size_t const size = (hi - lo) /
width + 1;
340 if (higuy - lo >= hi - loguy)
346 histk[stkptr] = higuy;
362 lostk[stkptr] = loguy;
#define _VALIDATE_RETURN_VOID(expr, errorcode)
GLint GLint GLsizei width
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
#define _CRT_SECURITYSAFECRITICAL_ATTRIBUTE
#define _Inout_updates_(s)
_CRT_SECURITYSAFECRITICAL_ATTRIBUTE void __fileDECL qsort(void *const base, size_t const num, size_t const width, int(__fileDECL *const comp)(void const *, void const *))
#define END_PRAGMA_OPTIMIZE()
#define __SHORTSORT(lo, hi, width, comp, context)
#define BEGIN_PRAGMA_OPTIMIZE_ENABLE(flags, bug, reason)
static _CRT_SECURITYSAFECRITICAL_ATTRIBUTE void __fileDECL shortsort(_Inout_updates_(hi - lo+1) char *lo, _Inout_updates_(width) char *hi, size_t const width, int(__fileDECL *comp)(void const *, void const *))
#define __COMPARE(context, p1, p2)