29 #include "../precompiled.h"
42 #if defined(MACOS_X) && defined(__i386__)
54 #define EMMS_INSTRUCTION __asm emms
70 void MMX_Memcpy8B(
void *dest,
const void *
src,
const int count ) {
97 void MMX_Memcpy64B(
void *dest,
const void *
src,
const int count ) {
141 void MMX_Memcpy2kB(
void *dest,
const void *
src,
const int count ) {
142 byte *tbuf = (
byte *)_alloca16(2048);
228 if ( count0 > 16 && !( ( (
int)dest0 ^ (
int)src0 ) & 7 ) ) {
233 int count = ((
int)dest) & 7;
234 memcpy( dest, src, count );
237 count = count0 -
count;
240 if ( count & ~4095 ) {
241 MMX_Memcpy2kB( dest, src, count );
242 src += (count & ~2047);
243 dest += (count & ~2047);
249 MMX_Memcpy64B( dest, src, count );
250 src += (count & ~63);
251 dest += (count & ~63);
257 MMX_Memcpy8B( dest, src, count );
259 dest += (count & ~7);
264 memcpy( dest, src, count );
267 memcpy( dest0, src0, count0 );
291 while ( count > 0 && (((
int)dest) & 7) ) {
302 dat.words[1] = dat.words[0];
303 dat.dwords[1] = dat.dwords[0];
332 dest += ( count & ~63 );
349 dest += (count & ~7);
353 while ( count > 0 ) {
virtual void VPCALL Memset(void *dst, const int val, const int count)
virtual void VPCALL Memcpy(void *dst, const void *src, const int count)
GLuint GLuint GLsizei count
virtual const char *VPCALL GetName(void) const