提交 2c5d516c 编写于 作者: J Joe Perches 提交者: Ingo Molnar

include/asm-x86/posix_types_32.h: checkpatch cleanups - formatting only

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 3cbaeafe
...@@ -45,32 +45,39 @@ typedef struct { ...@@ -45,32 +45,39 @@ typedef struct {
#if defined(__KERNEL__) #if defined(__KERNEL__)
#undef __FD_SET #undef __FD_SET
#define __FD_SET(fd,fdsetp) \ #define __FD_SET(fd,fdsetp) \
__asm__ __volatile__("btsl %1,%0": \ asm volatile("btsl %1,%0": \
"+m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd))) "+m" (*(__kernel_fd_set *)(fdsetp)) \
: "r" ((int)(fd)))
#undef __FD_CLR #undef __FD_CLR
#define __FD_CLR(fd,fdsetp) \ #define __FD_CLR(fd,fdsetp) \
__asm__ __volatile__("btrl %1,%0": \ asm volatile("btrl %1,%0": \
"+m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd))) "+m" (*(__kernel_fd_set *)(fdsetp)) \
: "r" ((int) (fd)))
#undef __FD_ISSET #undef __FD_ISSET
#define __FD_ISSET(fd,fdsetp) (__extension__ ({ \ #define __FD_ISSET(fd,fdsetp) \
unsigned char __result; \ (__extension__ \
__asm__ __volatile__("btl %1,%2 ; setb %0" \ ({ \
:"=q" (__result) :"r" ((int) (fd)), \ unsigned char __result; \
"m" (*(__kernel_fd_set *) (fdsetp))); \ asm volatile("btl %1,%2 ; setb %0" \
__result; })) : "=q" (__result) \
: "r" ((int)(fd)), \
"m" (*(__kernel_fd_set *)(fdsetp))); \
__result; \
}))
#undef __FD_ZERO #undef __FD_ZERO
#define __FD_ZERO(fdsetp) \ #define __FD_ZERO(fdsetp) \
do { \ do { \
int __d0, __d1; \ int __d0, __d1; \
__asm__ __volatile__("cld ; rep ; stosl" \ asm volatile("cld ; rep ; stosl" \
:"=m" (*(__kernel_fd_set *) (fdsetp)), \ : "=m" (*(__kernel_fd_set *)(fdsetp)), \
"=&c" (__d0), "=&D" (__d1) \ "=&c" (__d0), "=&D" (__d1) \
:"a" (0), "1" (__FDSET_LONGS), \ : "a" (0), "1" (__FDSET_LONGS), \
"2" ((__kernel_fd_set *) (fdsetp)) : "memory"); \ "2" ((__kernel_fd_set *)(fdsetp)) \
: "memory"); \
} while (0) } while (0)
#endif /* defined(__KERNEL__) */ #endif /* defined(__KERNEL__) */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册