+static inline unsigned int swap32(unsigned int x)
+{
+ __asm__("bswap %0 /* %1 */" : "=r" (x) : "0" (x));
+ return x;
+}
+
+#if 1
+typedef struct kernel_fd_set {
+ int bla;
+ int blup;
+} kernel_fd_set;
+#else
+typedef int kernel_fd_set;
+#endif
+
+void fd_set(int fd, kernel_fd_set* set) {
+ __asm__("btsl %1,%0" : "=m" (*(set)) : "r" (fd));
+}
+
+int fd_isset(int fd, kernel_fd_set *set) {
+ unsigned char result;
+
+ __asm__ __volatile__("btl %1,%2\n"
+ "\tsetb %0"
+ : "=q" (result)
+ : "r" (fd), "m" (*set));
+ return result;
+}
+
+int justcompile(void)