Comment 68 for bug 1847361

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

There are a few offsets changed which do not matter.
What is left is:

$ diff -Naur file-posix.i.good file-posix.i.bad
--- file-posix.i.good 2020-05-06 13:42:04.936368109 +0200
+++ file-posix.i.bad 2020-05-06 13:46:23.573406190 +0200
@@ -69470,6 +69470,9 @@
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 # 6 "/usr/include/linux/swab.h" 2 3 4

+# 1 "/usr/include/x86_64-linux-gnu/asm/bitsperlong.h" 1 3 4
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+# 8 "/usr/include/linux/swab.h" 2 3 4
 # 1 "/usr/include/x86_64-linux-gnu/asm/swab.h" 1 3 4
 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */

-# 135 "/usr/include/linux/swab.h" 3 4
+# 136 "/usr/include/linux/swab.h" 3 4
+static __inline __attribute__ ((__always_inline__)) unsigned long __swab(const unsigned long y)
+{
+
+
+
+ return (__builtin_constant_p((__u32)(y)) ? ((__u32)( (((__u32)(y) & (__u32)0x000000ffUL) << 24) | (((__u32)(y) & (__u32)0x0000ff00UL) << 8) | (((__u32)(y) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(y) & (__u32)0xff000000UL) >> 24))) : __fswab32(y));
+
+}
+
 /**
  * __swahw32 - return a word-swapped 32-bit value
  * @x: value to wordswap