Revision be449fca libavcodec/ppc/dsputil_ppc.h

View differences:

libavcodec/ppc/dsputil_ppc.h
70 70

  
71 71
#ifndef HAVE_PPC64
72 72
#define POWERP_PMC_DATATYPE unsigned long
73
#define POWERPC_GET_PMC1(a) asm volatile("mfspr %0, 937" : "=r" (a))
74
#define POWERPC_GET_PMC2(a) asm volatile("mfspr %0, 938" : "=r" (a))
73
#define POWERPC_GET_PMC1(a) __asm__ volatile("mfspr %0, 937" : "=r" (a))
74
#define POWERPC_GET_PMC2(a) __asm__ volatile("mfspr %0, 938" : "=r" (a))
75 75
#if (POWERPC_NUM_PMC_ENABLED > 2)
76
#define POWERPC_GET_PMC3(a) asm volatile("mfspr %0, 941" : "=r" (a))
77
#define POWERPC_GET_PMC4(a) asm volatile("mfspr %0, 942" : "=r" (a))
76
#define POWERPC_GET_PMC3(a) __asm__ volatile("mfspr %0, 941" : "=r" (a))
77
#define POWERPC_GET_PMC4(a) __asm__ volatile("mfspr %0, 942" : "=r" (a))
78 78
#else
79 79
#define POWERPC_GET_PMC3(a) do {} while (0)
80 80
#define POWERPC_GET_PMC4(a) do {} while (0)
81 81
#endif
82 82
#if (POWERPC_NUM_PMC_ENABLED > 4)
83
#define POWERPC_GET_PMC5(a) asm volatile("mfspr %0, 929" : "=r" (a))
84
#define POWERPC_GET_PMC6(a) asm volatile("mfspr %0, 930" : "=r" (a))
83
#define POWERPC_GET_PMC5(a) __asm__ volatile("mfspr %0, 929" : "=r" (a))
84
#define POWERPC_GET_PMC6(a) __asm__ volatile("mfspr %0, 930" : "=r" (a))
85 85
#else
86 86
#define POWERPC_GET_PMC5(a) do {} while (0)
87 87
#define POWERPC_GET_PMC6(a) do {} while (0)
88 88
#endif
89 89
#else /* HAVE_PPC64 */
90 90
#define POWERP_PMC_DATATYPE unsigned long long
91
#define POWERPC_GET_PMC1(a) asm volatile("mfspr %0, 771" : "=r" (a))
92
#define POWERPC_GET_PMC2(a) asm volatile("mfspr %0, 772" : "=r" (a))
91
#define POWERPC_GET_PMC1(a) __asm__ volatile("mfspr %0, 771" : "=r" (a))
92
#define POWERPC_GET_PMC2(a) __asm__ volatile("mfspr %0, 772" : "=r" (a))
93 93
#if (POWERPC_NUM_PMC_ENABLED > 2)
94
#define POWERPC_GET_PMC3(a) asm volatile("mfspr %0, 773" : "=r" (a))
95
#define POWERPC_GET_PMC4(a) asm volatile("mfspr %0, 774" : "=r" (a))
94
#define POWERPC_GET_PMC3(a) __asm__ volatile("mfspr %0, 773" : "=r" (a))
95
#define POWERPC_GET_PMC4(a) __asm__ volatile("mfspr %0, 774" : "=r" (a))
96 96
#else
97 97
#define POWERPC_GET_PMC3(a) do {} while (0)
98 98
#define POWERPC_GET_PMC4(a) do {} while (0)
99 99
#endif
100 100
#if (POWERPC_NUM_PMC_ENABLED > 4)
101
#define POWERPC_GET_PMC5(a) asm volatile("mfspr %0, 775" : "=r" (a))
102
#define POWERPC_GET_PMC6(a) asm volatile("mfspr %0, 776" : "=r" (a))
101
#define POWERPC_GET_PMC5(a) __asm__ volatile("mfspr %0, 775" : "=r" (a))
102
#define POWERPC_GET_PMC6(a) __asm__ volatile("mfspr %0, 776" : "=r" (a))
103 103
#else
104 104
#define POWERPC_GET_PMC5(a) do {} while (0)
105 105
#define POWERPC_GET_PMC6(a) do {} while (0)

Also available in: Unified diff