Lines Matching refs:from

6  * Idea and some code bits from via_memcpy.c which is
85 #define PREFETCH1(arch_prefetch,from) \
97 : "r" (from) );
99 #define PREFETCH2(arch_prefetch,from) \
103 : "r" (from) );
105 #define PREFETCH3(arch_prefetch,from) \
109 : "r" (from) );
111 #define small_memcpy_i386(to,from,n) \
122 : "=&D" (to), "=&S" (from) \
123 : "c" (n), "0" ((long) to), "1" ((long) from) \
127 #define small_memcpy_amd64(to,from,n) \
141 : "=&D" (to), "=&S" (from) \
142 : "c" (n), "0" ((long) to), "1" ((long) from) \
146 #define MMX_CPY(prefetch,from,to,dummy,lcnt) \
171 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
172 : "0" (to), "1" (from), "2" (lcnt) \
175 #define SSE_CPY(prefetch,from,to,dummy,lcnt) \
176 if((ULong) from & 15) { \
193 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
194 : "0" (to), "1" (from), "2" (lcnt) \
213 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
214 : "0" (to), "1" (from), "2" (lcnt) \
218 #define SSE64_CPY(prefetch,from,to,dummy,lcnt) \
219 if((ULong) from & 15) { \
236 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
237 : "0" (to), "1" (from), "2" (lcnt) \
256 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
257 : "0" (to), "1" (from), "2" (lcnt) \
261 #define MMXEXT_CPY(prefetch,from,to,dummy,lcnt) \
287 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
288 : "0" (to), "1" (from), "2" (lcnt) \
295 const UChar *from, \
302 PREFETCH1(ptype##_PREFETCH,from); \
306 itype##_CPY(ptype##_PREFETCH,from,to,dummy,lcnt); \
309 PREFETCH2(ptype##_PREFETCH,from); \
310 small(to, from, rest); \
311 PREFETCH3(ptype##_PREFETCH,from); \
319 const UChar *from, \
328 itype##_CPY("#",from,to,dummy,lcnt); \
331 small(to, from, rest); \
373 vidCopyFunc SiSVidCopyInit(ScreenPtr pScreen, vidCopyFunc *UMemCpy, Bool from)
405 static __inline void * builtin_memcpy(void * to, const void * from, size_t n)
419 : "0" (n), "1" ((long) to), "2" ((long) from)
426 static void SiS_builtin_memcp2(UChar *to, const UChar *from, int n)
468 : "0" (n), "1" ((long) to), "2" ((long) from)
499 static __inline void * builtin_memcpy(void * to, const void * from, int n)
510 "1" ((long) to), "2" ((long) from)
517 static void SiS_builtin_memcp2(UChar *to, const UChar *from, int n)
550 :"0" ((ULong) n), "1" ((long) to), "2" ((long) from)
581 /* static __inline void * builtin_memcpy(void * to, const void * from, int n)
659 vidCopyFunc *UMemCpy, int *best2, Bool from)
672 from ? "video" : "system",
673 from ? "system" : "video");
688 if(!from) {
745 unsigned int myCPUflags, vidCopyFunc *UMemCpy, Bool from)
754 grade = from ? MCFunctions[j].gradefrom : MCFunctions[j].grade;
772 from ? "from" : "to");
777 from ? "from" : "to");
819 /* Linux: Extract CPU speed from /proc/cpuinfo */
1055 SiSVidCopyInitGen(ScreenPtr pScreen, SISMCFuncData *MCFunctions, vidCopyFunc *UMemCpy, Bool from)
1090 return SiS_GetBestByGrade(pScrn, MCFunctions, myCPUflags, UMemCpy, from);
1097 frqBuf, cpuFreq, UMemCpy, &secondbest, from);
1107 from ? "from" : "to");
1112 from ? "from" : "to");
1148 vidCopyFunc SiSVidCopyInit(ScreenPtr pScreen, vidCopyFunc *UMemCpy, Bool from)
1151 return(SiSVidCopyInitGen(pScreen, MCFunctions_i386, UMemCpy, from));
1153 return(SiSVidCopyInitGen(pScreen, MCFunctions_AMD64, UMemCpy, from));