History

postprocess: prefetch* dont change anything, thus their arguments should be const

Michael Niedermayer committed 12 years ago

Commit bd689091 parent fe5093a1 file · +4 −4Browse files

Unified · Split

libpostproc/postprocess.c+4−4
@@ -166,28 +166,28 @@ static const char * const replaceTable[]= · 165 unmodified lines
166 166
167 167
168#if ARCH_X86 && HAVE_INLINE_ASM168#if ARCH_X86 && HAVE_INLINE_ASM
169static inline void prefetchnta(void *p)169static inline void prefetchnta(const void *p)
170{170{
171 __asm__ volatile( "prefetchnta (%0)\n\t"171 __asm__ volatile( "prefetchnta (%0)\n\t"
172 : : "r" (p)172 : : "r" (p)
173 );173 );
174}174}
175 175
176static inline void prefetcht0(void *p)176static inline void prefetcht0(const void *p)
177{177{
178 __asm__ volatile( "prefetcht0 (%0)\n\t"178 __asm__ volatile( "prefetcht0 (%0)\n\t"
179 : : "r" (p)179 : : "r" (p)
180 );180 );
181}181}
182 182
183static inline void prefetcht1(void *p)183static inline void prefetcht1(const void *p)
184{184{
185 __asm__ volatile( "prefetcht1 (%0)\n\t"185 __asm__ volatile( "prefetcht1 (%0)\n\t"
186 : : "r" (p)186 : : "r" (p)
187 );187 );
188}188}
189 189
190static inline void prefetcht2(void *p)190static inline void prefetcht2(const void *p)
191{191{
192 __asm__ volatile( "prefetcht2 (%0)\n\t"192 __asm__ volatile( "prefetcht2 (%0)\n\t"
193 : : "r" (p)193 : : "r" (p)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t