forked from 0ad/0ad
janwas
4be0fe18a0
. major compat fixes for interoperation with wxw. . add crashlog_sender (modified version of debgrpt wxw sample). compiles but untested, will be changed heavily further improvements: . wposix no longer declares CRT functions. instead, use CRT headers.. but don't allow their (incorrect/non-POSIX) declarations to propagate to users. . split up win.cpp into wstartup, wutil, winit . extern "C" -> EXTERN_C . move sdl.* to lib/external_libraries and add png.h+zlib.h (fixes for and include of the library) This was SVN commit r5028.
23 lines
778 B
C++
23 lines
778 B
C++
#include "precompiled.h"
|
|
|
|
#include "ia32.h"
|
|
#include "ia32_memcpy.h"
|
|
|
|
// set by ia32_memcpy_init, referenced by ia32_memcpy (asm)
|
|
// default to "all codepaths supported"
|
|
EXTERN_C u32 ia32_memcpy_size_mask = ~0u;
|
|
|
|
void ia32_memcpy_init()
|
|
{
|
|
// set the mask that is applied to transfer size before
|
|
// choosing copy technique. this is the mechanism for disabling
|
|
// codepaths that aren't supported on all CPUs; see article for details.
|
|
// .. check for PREFETCHNTA and MOVNTQ support. these are part of the SSE
|
|
// instruction set, but also supported on older Athlons as part of
|
|
// the extended AMD MMX set.
|
|
if(!ia32_cap(IA32_CAP_SSE) && !ia32_cap(IA32_CAP_AMD_MMX_EXT))
|
|
ia32_memcpy_size_mask = 0u;
|
|
}
|
|
|
|
// ia32_memcpy() is defined in ia32_memcpy_asm.asm
|