diff options
author | Joe Perches <joe@perches.com> | 2008-03-23 04:03:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:27 -0400 |
commit | 9551b12a51bab7058ad486ba96fd0c27fdafe922 (patch) | |
tree | 67f3cc6f286af66387bd37677fd528255cd769b6 /include/asm-x86/signal.h | |
parent | af1fec15de17086864fc3917e21a31e303ec0e91 (diff) |
include/asm-x86/signal.h: checkpatch cleanups - formatting only
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/signal.h')
-rw-r--r-- | include/asm-x86/signal.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/include/asm-x86/signal.h b/include/asm-x86/signal.h index aee7eca585ab..f15186d39c69 100644 --- a/include/asm-x86/signal.h +++ b/include/asm-x86/signal.h | |||
@@ -185,61 +185,61 @@ typedef struct sigaltstack { | |||
185 | 185 | ||
186 | #define __HAVE_ARCH_SIG_BITOPS | 186 | #define __HAVE_ARCH_SIG_BITOPS |
187 | 187 | ||
188 | #define sigaddset(set,sig) \ | 188 | #define sigaddset(set,sig) \ |
189 | (__builtin_constantp(sig) ? \ | 189 | (__builtin_constantp(sig) \ |
190 | __const_sigaddset((set),(sig)) : \ | 190 | ? __const_sigaddset((set), (sig)) \ |
191 | __gen_sigaddset((set),(sig))) | 191 | : __gen_sigaddset((set), (sig))) |
192 | 192 | ||
193 | static __inline__ void __gen_sigaddset(sigset_t *set, int _sig) | 193 | static inline void __gen_sigaddset(sigset_t *set, int _sig) |
194 | { | 194 | { |
195 | __asm__("btsl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc"); | 195 | asm("btsl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc"); |
196 | } | 196 | } |
197 | 197 | ||
198 | static __inline__ void __const_sigaddset(sigset_t *set, int _sig) | 198 | static inline void __const_sigaddset(sigset_t *set, int _sig) |
199 | { | 199 | { |
200 | unsigned long sig = _sig - 1; | 200 | unsigned long sig = _sig - 1; |
201 | set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW); | 201 | set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW); |
202 | } | 202 | } |
203 | 203 | ||
204 | #define sigdelset(set,sig) \ | 204 | #define sigdelset(set, sig) \ |
205 | (__builtin_constant_p(sig) ? \ | 205 | (__builtin_constant_p(sig) \ |
206 | __const_sigdelset((set),(sig)) : \ | 206 | ? __const_sigdelset((set), (sig)) \ |
207 | __gen_sigdelset((set),(sig))) | 207 | : __gen_sigdelset((set), (sig))) |
208 | 208 | ||
209 | 209 | ||
210 | static __inline__ void __gen_sigdelset(sigset_t *set, int _sig) | 210 | static inline void __gen_sigdelset(sigset_t *set, int _sig) |
211 | { | 211 | { |
212 | __asm__("btrl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc"); | 212 | asm("btrl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc"); |
213 | } | 213 | } |
214 | 214 | ||
215 | static __inline__ void __const_sigdelset(sigset_t *set, int _sig) | 215 | static inline void __const_sigdelset(sigset_t *set, int _sig) |
216 | { | 216 | { |
217 | unsigned long sig = _sig - 1; | 217 | unsigned long sig = _sig - 1; |
218 | set->sig[sig / _NSIG_BPW] &= ~(1 << (sig % _NSIG_BPW)); | 218 | set->sig[sig / _NSIG_BPW] &= ~(1 << (sig % _NSIG_BPW)); |
219 | } | 219 | } |
220 | 220 | ||
221 | static __inline__ int __const_sigismember(sigset_t *set, int _sig) | 221 | static inline int __const_sigismember(sigset_t *set, int _sig) |
222 | { | 222 | { |
223 | unsigned long sig = _sig - 1; | 223 | unsigned long sig = _sig - 1; |
224 | return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); | 224 | return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); |
225 | } | 225 | } |
226 | 226 | ||
227 | static __inline__ int __gen_sigismember(sigset_t *set, int _sig) | 227 | static inline int __gen_sigismember(sigset_t *set, int _sig) |
228 | { | 228 | { |
229 | int ret; | 229 | int ret; |
230 | __asm__("btl %2,%1\n\tsbbl %0,%0" | 230 | asm("btl %2,%1\n\tsbbl %0,%0" |
231 | : "=r"(ret) : "m"(*set), "Ir"(_sig-1) : "cc"); | 231 | : "=r"(ret) : "m"(*set), "Ir"(_sig-1) : "cc"); |
232 | return ret; | 232 | return ret; |
233 | } | 233 | } |
234 | 234 | ||
235 | #define sigismember(set,sig) \ | 235 | #define sigismember(set, sig) \ |
236 | (__builtin_constant_p(sig) ? \ | 236 | (__builtin_constant_p(sig) \ |
237 | __const_sigismember((set),(sig)) : \ | 237 | ? __const_sigismember((set), (sig)) \ |
238 | __gen_sigismember((set),(sig))) | 238 | : __gen_sigismember((set), (sig))) |
239 | 239 | ||
240 | static __inline__ int sigfindinword(unsigned long word) | 240 | static inline int sigfindinword(unsigned long word) |
241 | { | 241 | { |
242 | __asm__("bsfl %1,%0" : "=r"(word) : "rm"(word) : "cc"); | 242 | asm("bsfl %1,%0" : "=r"(word) : "rm"(word) : "cc"); |
243 | return word; | 243 | return word; |
244 | } | 244 | } |
245 | 245 | ||