1 | /*
|
---|
2 | * This file is part of uniaud.dll.
|
---|
3 | *
|
---|
4 | * Copyright (c) 2010 Mensys BV
|
---|
5 | * Copyright (c) 2007 Vlad Stelmahovsky aka Vladest
|
---|
6 | *
|
---|
7 | * This library is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU Lesser General Public License as
|
---|
9 | * published by the Free Software Foundation, either version 3 of
|
---|
10 | * the License, or (at your option) any later version.
|
---|
11 | *
|
---|
12 | * This library is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU Lesser General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU Lesser General Public
|
---|
18 | * License and the GNU General Public License along with this library.
|
---|
19 | * If not, see <http://www.gnu.org/licenses/>.
|
---|
20 | */
|
---|
21 | #ifndef _FASTMEMCPY_H_
|
---|
22 | #define _FASTMEMCPY_H_
|
---|
23 |
|
---|
24 | #define MM_MMX 0x0001 /* standard MMX */
|
---|
25 | #define MM_3DNOW 0x0004 /* AMD 3DNOW */
|
---|
26 | #define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */
|
---|
27 | #define MM_SSE 0x0008 /* SSE functions */
|
---|
28 | #define MM_SSE2 0x0010 /* PIV SSE2 functions */
|
---|
29 |
|
---|
30 |
|
---|
31 | int init_fast_memcpy(int mm_flags);
|
---|
32 |
|
---|
33 | #define memcpy(a,b,c) fast_memcpy(a,b,c)
|
---|
34 |
|
---|
35 | extern void *(* fast_memcpy)(void *to, const void *from, size_t len);
|
---|
36 |
|
---|
37 | #endif
|
---|