Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 394443
Collapse All | Expand All

(-)psmisc-22.14/src/lists.h (-36 lines)
Lines 68-91 Link Here
68
    asm volatile ("lfetch [%0]"    :: "r" (x))
68
    asm volatile ("lfetch [%0]"    :: "r" (x))
69
#elif defined(__powerpc64__)
69
#elif defined(__powerpc64__)
70
    asm volatile ("dcbt 0,%0"      :: "r" (x))
70
    asm volatile ("dcbt 0,%0"      :: "r" (x))
71
#elif 1 && defined(__i386__)
72
    asm volatile ("661:\n\t"
73
		  ".byte 0x8d,0x74,0x26,0x00\n"
74
		  "\n662:\n"
75
		  ".section .altinstructions,\"a\"\n"
76
		  "  .align 4\n"
77
		  "  .long 661b\n"
78
		  "  .long 663f\n"
79
		  "  .byte %c0\n"
80
		  "  .byte 662b-661b\n"
81
		  "  .byte 664f-663f\n"
82
		  ".previous\n"
83
		  ".section .altinstr_replacement,\"ax\"\n"
84
		  "   663:\n\t"
85
		  "   prefetchnta (%1)"
86
		  "   \n664:\n"
87
		  ".previous"
88
		  :: "i" ((0*32+25)), "r" (x))
89
#else
71
#else
90
    __builtin_prefetch ((x), 0, 1);
72
    __builtin_prefetch ((x), 0, 1);
91
#endif
73
#endif
Lines 317-340 Link Here
317
    asm volatile ("lfetch [%0]"    :: "r" (x))
299
    asm volatile ("lfetch [%0]"    :: "r" (x))
318
#elif defined(__powerpc64__)
300
#elif defined(__powerpc64__)
319
    asm volatile ("dcbt 0,%0"      :: "r" (x))
301
    asm volatile ("dcbt 0,%0"      :: "r" (x))
320
#elif 1 && defined(__i386__)
321
    asm volatile ("661:\n\t"
322
		  ".byte 0x8d,0x74,0x26,0x00\n"
323
		  "\n662:\n"
324
		  ".section .altinstructions,\"a\"\n"
325
		  "  .align 4\n"
326
		  "  .long 661b\n"
327
		  "  .long 663f\n"
328
		  "  .byte %c0\n"
329
		  "  .byte 662b-661b\n"
330
		  "  .byte 664f-663f\n"
331
		  ".previous\n"
332
		  ".section .altinstr_replacement,\"ax\"\n"
333
		  "   663:\n\t"
334
		  "   prefetchnta (%1)"
335
		  "   \n664:\n"
336
		  ".previous"
337
		  :: "i" ((0*32+25)), "r" (x))
338
#else
302
#else
339
    __builtin_prefetch ((x), 0, 1);
303
    __builtin_prefetch ((x), 0, 1);
340
#endif
304
#endif

Return to bug 394443