Mercurial > mplayer.hg
comparison vidix/sysdep/AsmMacros_arm32.h @ 26753:502f04b67653
cosmetics: Remove useless parentheses from return statements.
author | diego |
---|---|
date | Fri, 16 May 2008 00:13:03 +0000 |
parents | a93e46adb54c |
children | 958431e2cde0 |
comparison
equal
deleted
inserted
replaced
26752:65f61607e32f | 26753:502f04b67653 |
---|---|
82 *(volatile unsigned long*)(((unsigned short)(port))+IOPortBase) = val; | 82 *(volatile unsigned long*)(((unsigned short)(port))+IOPortBase) = val; |
83 } | 83 } |
84 | 84 |
85 static __inline__ unsigned int inb(short port) | 85 static __inline__ unsigned int inb(short port) |
86 { | 86 { |
87 if ((unsigned short)port >= 0x400) return((unsigned int)-1); | 87 if ((unsigned short)port >= 0x400) return (unsigned int)-1; |
88 return(*(volatile unsigned char*)(((unsigned short)(port))+IOPortBase)); | 88 return *(volatile unsigned char*)(((unsigned short)(port))+IOPortBase); |
89 } | 89 } |
90 | 90 |
91 static __inline__ unsigned int inw(short port) | 91 static __inline__ unsigned int inw(short port) |
92 { | 92 { |
93 if ((unsigned short)port >= 0x400) return((unsigned int)-1); | 93 if ((unsigned short)port >= 0x400) return (unsigned int)-1; |
94 return(*(volatile unsigned short*)(((unsigned short)(port))+IOPortBase)); | 94 return *(volatile unsigned short*)(((unsigned short)(port))+IOPortBase); |
95 } | 95 } |
96 | 96 |
97 static __inline__ unsigned int inl(short port) | 97 static __inline__ unsigned int inl(short port) |
98 { | 98 { |
99 if ((unsigned short)port >= 0x400) return((unsigned int)-1); | 99 if ((unsigned short)port >= 0x400) return (unsigned int)-1; |
100 return(*(volatile unsigned long*)(((unsigned short)(port))+IOPortBase)); | 100 return *(volatile unsigned long*)(((unsigned short)(port))+IOPortBase); |
101 } | 101 } |
102 | 102 |
103 #define intr_disable() | 103 #define intr_disable() |
104 #define intr_enable() | 104 #define intr_enable() |
105 | 105 |