search for: __fd_mask

Displaying 8 results from an estimated 8 matches for "__fd_mask".

2010 Feb 16
2
[LLVMdev] FD_ZERO unsupported inline asm on 64 bit
..." __FD_ZERO_STOS \ : "=c" (__d0), "=D" (__d1) \ : "a" (0), "0" (sizeof (fd_set) \ / sizeof (__fd_mask)), \ "1" (&__FDS_BITS (fdsp)[0]) \ : "memory"); \ } while (0) Thanks, Cristi
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
...1))/(y)) + #endif /* !howmany */ + /* from the Linux kernel */ + //#define __NFDBITS (8 * sizeof(unsigned long)) /* results in 32 under QNX and Linux (A.S.) */ + + /* from Linux's <bits/types.h> */ + /* One element in the file descriptor mask array. */ + typedef unsigned long int __fd_mask; + /* It's easier to assume 8-bit bytes than to get CHAR_BIT. */ + #define __NFDBITS (8 * sizeof (__fd_mask)) /* results in 32 under QNX and Linux (A.S.) */ + + /* from Linux's <sys/select.h> */ + /* Number of bits per word of `fd_set' (some code assumes this is 32). */...
2010 Feb 16
0
[LLVMdev] FD_ZERO unsupported inline asm on 64 bit
...O_STOS \ > : "=c" (__d0), "=D" (__d1) \ > : "a" (0), "0" (sizeof (fd_set) \ > / sizeof (__fd_mask)), \ > "1" (&__FDS_BITS (fdsp)[0]) \ > : "memory"); \ > } while (0) That said, this is an odd way to implement FD_ZERO. The crazy asm...
2010 Feb 16
2
[LLVMdev] FD_ZERO unsupported inline asm on 64 bit
...\ >> : "=c" (__d0), "=D" (__d1) \ >> : "a" (0), "0" (sizeof (fd_set) \ >> / sizeof (__fd_mask)), \ >> "1" (&__FDS_BITS (fdsp)[0]) \ >> : "memory"); \ >> } while (0) > > That said, this is an odd way to implement FD_ZE...
2010 Jul 12
2
[LLVMdev] about llvm2.7's inline assembly
Hello, Whenever I compile a C program containing "FD_SET" function using llvm-gcc 2.7 (with -emit-llvm option), I got the following inline assembly in my llvm byte code: %asmtmp = call %struct.__mbstate_t asm sideeffect "cld; rep; stosl", "={cx},={di},{ax},0,1,~{dirflag},~{fpsr},~{flags},~{memory}"(i32 0, i32 32, i32* getelementptr inbounds (%struct.__sigset_t*
2010 Jul 12
0
[LLVMdev] about llvm2.7's inline assembly
...ot; __FD_ZERO_STOS \ : "=c" (__d0), "=D" (__d1) \ : "a" (0), "0" (sizeof (fd_set) \ / sizeof (__fd_mask)), \ "1" (&__FDS_BITS (fdsp)[0]) \ : "memory"); \ } while (0) #else /* ! GNU CC */ Maybe there's a good reason not to just use memset,...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...ned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; typedef __sigset_t sigset_t; struct timespec { __time_t tv_sec; long int tv_nsec; }; struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; typedef __suseconds_t suseconds_t; typedef long int __fd_mask; typedef struct { __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); ex...