Mercurial > mplayer.hg
comparison drivers/radeon_vid.c @ 27757:b5a46071062a
Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'.
We were using an inconsistent mix of the three variants and 'volatile' should
be the most correct and portable variant.
author | diego |
---|---|
date | Thu, 16 Oct 2008 20:17:56 +0000 |
parents | 08d18fe9da52 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
27756:1266470a5651 | 27757:b5a46071062a |
---|---|
127 /* Ugly but only way */ | 127 /* Ugly but only way */ |
128 #undef AVOID_FPU | 128 #undef AVOID_FPU |
129 static inline double FastSin(double x) | 129 static inline double FastSin(double x) |
130 { | 130 { |
131 register double res; | 131 register double res; |
132 __asm__ __volatile("fsin":"=t"(res):"0"(x)); | 132 __asm__ volatile("fsin":"=t"(res):"0"(x)); |
133 return res; | 133 return res; |
134 } | 134 } |
135 #undef sin | 135 #undef sin |
136 #define sin(x) FastSin(x) | 136 #define sin(x) FastSin(x) |
137 | 137 |
138 static inline double FastCos(double x) | 138 static inline double FastCos(double x) |
139 { | 139 { |
140 register double res; | 140 register double res; |
141 __asm__ __volatile("fcos":"=t"(res):"0"(x)); | 141 __asm__ volatile("fcos":"=t"(res):"0"(x)); |
142 return res; | 142 return res; |
143 } | 143 } |
144 #undef cos | 144 #undef cos |
145 #define cos(x) FastCos(x) | 145 #define cos(x) FastCos(x) |
146 #else | 146 #else |