comparison src/hermes/HeadMMX.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d910939febfa
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
17 17
18 #ifdef X86_ASSEMBLER 18 #ifdef X86_ASSEMBLER
19 19
20 20
21 #ifdef __cplusplus 21 #ifdef __cplusplus
22 extern "C" { 22 extern "C"
23 {
23 #endif 24 #endif
24 25
25 void STACKCALL ConvertMMX(HermesConverterInterface *); 26 void STACKCALL ConvertMMX(HermesConverterInterface *);
26 27
27 void STACKCALL ClearMMX_32(HermesClearInterface *); 28 void STACKCALL ClearMMX_32(HermesClearInterface *);
28 void STACKCALL ClearMMX_24(HermesClearInterface *); 29 void STACKCALL ClearMMX_24(HermesClearInterface *);
29 void STACKCALL ClearMMX_16(HermesClearInterface *); 30 void STACKCALL ClearMMX_16(HermesClearInterface *);
30 void STACKCALL ClearMMX_8(HermesClearInterface *); 31 void STACKCALL ClearMMX_8(HermesClearInterface *);
31 32
32 void ConvertMMXpII32_24RGB888(); 33 void ConvertMMXpII32_24RGB888();
33 void ConvertMMXpII32_16RGB565(); 34 void ConvertMMXpII32_16RGB565();
34 void ConvertMMXpII32_16BGR565(); 35 void ConvertMMXpII32_16BGR565();
35 void ConvertMMXpII32_16RGB555(); 36 void ConvertMMXpII32_16RGB555();
36 void ConvertMMXpII32_16BGR565(); 37 void ConvertMMXpII32_16BGR565();
37 void ConvertMMXpII32_16BGR555(); 38 void ConvertMMXpII32_16BGR555();
38 39
39 void ConvertMMXp32_16RGB555(); 40 void ConvertMMXp32_16RGB555();
40 41
41 #ifdef __cplusplus 42 #ifdef __cplusplus
42 } 43 }
43 #endif 44 #endif
44 45
45 46
46 47
47 /* Fix the underscore business with ELF compilers */ 48 /* Fix the underscore business with ELF compilers */
48 49
49 #if defined(__ELF__) && defined(__GNUC__) 50 #if defined(__ELF__) && defined(__GNUC__)
50 #ifdef __cplusplus 51 #ifdef __cplusplus
51 extern "C" { 52 extern "C"
52 #endif 53 {
54 #endif
53 55
54 extern void _ConvertMMX(HermesConverterInterface *); 56 extern void _ConvertMMX(HermesConverterInterface *);
55 extern void _ConvertMMXpII32_24RGB888(); 57 extern void _ConvertMMXpII32_24RGB888();
56 extern void _ConvertMMXpII32_16RGB565(); 58 extern void _ConvertMMXpII32_16RGB565();
57 extern void _ConvertMMXpII32_16BGR565(); 59 extern void _ConvertMMXpII32_16BGR565();
58 extern void _ConvertMMXpII32_16RGB555(); 60 extern void _ConvertMMXpII32_16RGB555();
59 extern void _ConvertMMXpII32_16BGR555(); 61 extern void _ConvertMMXpII32_16BGR555();
60 62
61 #define ConvertMMX _ConvertMMX 63 #define ConvertMMX _ConvertMMX
62 #define ConvertMMXpII32_24RGB888 _ConvertMMXpII32_24RGB888 64 #define ConvertMMXpII32_24RGB888 _ConvertMMXpII32_24RGB888
63 #define ConvertMMXpII32_16RGB565 _ConvertMMXpII32_16RGB565 65 #define ConvertMMXpII32_16RGB565 _ConvertMMXpII32_16RGB565
64 #define ConvertMMXpII32_16BGR565 _ConvertMMXpII32_16BGR565 66 #define ConvertMMXpII32_16BGR565 _ConvertMMXpII32_16BGR565
65 #define ConvertMMXpII32_16RGB555 _ConvertMMXpII32_16RGB555 67 #define ConvertMMXpII32_16RGB555 _ConvertMMXpII32_16RGB555
66 #define ConvertMMXpII32_16BGR555 _ConvertMMXpII32_16BGR555 68 #define ConvertMMXpII32_16BGR555 _ConvertMMXpII32_16BGR555
67 69
68 #ifdef __cplusplus 70 #ifdef __cplusplus
69 } 71 }
70 #endif 72 #endif
71 73
72 #endif /* ELF and GNUC */ 74 #endif /* ELF and GNUC */
73 75
74 76
75 77
76 78
77 /* Make it work with Watcom */ 79 /* Make it work with Watcom */
90 #pragma aux ConvertMMXpII32_16BGR565 "_*" 92 #pragma aux ConvertMMXpII32_16BGR565 "_*"
91 #pragma aux ConvertMMXpII32_16RGB555 "_*" 93 #pragma aux ConvertMMXpII32_16RGB555 "_*"
92 #pragma aux ConvertMMXpII32_16BGR555 "_*" 94 #pragma aux ConvertMMXpII32_16BGR555 "_*"
93 #pragma aux ConvertMMXp32_16RGB555 "_*" 95 #pragma aux ConvertMMXp32_16RGB555 "_*"
94 96
95 #endif /* WATCOM */ 97 #endif /* WATCOM */
96 98
97 #endif /* X86_ASSEMBLER */ 99 #endif /* X86_ASSEMBLER */
98 100
99 101
100 #endif 102 #endif
103 /* vi: set ts=4 sw=4 expandtab: */