OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
arch
/
parisc
/
include
/
uapi
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:13 AM
rwxr-xr-x
📄
Kbuild
212 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitsperlong.h
302 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
byteorder.h
194 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
errno.h
5.7 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fcntl.h
1.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ioctl.h
1.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ioctls.h
3.58 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ipcbuf.h
837 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mman.h
3.34 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
msgbuf.h
1.16 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pdc.h
21.97 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
posix_types.h
726 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
2.75 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sembuf.h
857 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
setup.h
173 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
shmbuf.h
1.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sigcontext.h
557 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
siginfo.h
239 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
2.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
socket.h
2.42 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sockios.h
410 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
stat.h
1.76 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
statfs.h
181 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
swab.h
1.77 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
termbits.h
4.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
termios.h
1.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
types.h
154 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unistd.h
17.79 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: swab.h
Close
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _PARISC_SWAB_H #define _PARISC_SWAB_H #include <asm/bitsperlong.h> #include <linux/types.h> #include <linux/compiler.h> #define __SWAB_64_THRU_32__ static inline __attribute_const__ __u16 __arch_swab16(__u16 x) { __asm__("dep %0, 15, 8, %0\n\t" /* deposit 00ab -> 0bab */ "shd %%r0, %0, 8, %0" /* shift 000000ab -> 00ba */ : "=r" (x) : "0" (x)); return x; } #define __arch_swab16 __arch_swab16 static inline __attribute_const__ __u32 __arch_swab24(__u32 x) { __asm__("shd %0, %0, 8, %0\n\t" /* shift xabcxabc -> cxab */ "dep %0, 15, 8, %0\n\t" /* deposit cxab -> cbab */ "shd %%r0, %0, 8, %0" /* shift 0000cbab -> 0cba */ : "=r" (x) : "0" (x)); return x; } static inline __attribute_const__ __u32 __arch_swab32(__u32 x) { unsigned int temp; __asm__("shd %0, %0, 16, %1\n\t" /* shift abcdabcd -> cdab */ "dep %1, 15, 8, %1\n\t" /* deposit cdab -> cbab */ "shd %0, %1, 8, %0" /* shift abcdcbab -> dcba */ : "=r" (x), "=&r" (temp) : "0" (x)); return x; } #define __arch_swab32 __arch_swab32 #if __BITS_PER_LONG > 32 /* ** From "PA-RISC 2.0 Architecture", HP Professional Books. ** See Appendix I page 8 , "Endian Byte Swapping". ** ** Pretty cool algorithm: (* == zero'd bits) ** PERMH 01234567 -> 67452301 into %0 ** HSHL 67452301 -> 7*5*3*1* into %1 ** HSHR 67452301 -> *6*4*2*0 into %0 ** OR %0 | %1 -> 76543210 into %0 (all done!) */ static inline __attribute_const__ __u64 __arch_swab64(__u64 x) { __u64 temp; __asm__("permh,3210 %0, %0\n\t" "hshl %0, 8, %1\n\t" "hshr,u %0, 8, %0\n\t" "or %1, %0, %0" : "=r" (x), "=&r" (temp) : "0" (x)); return x; } #define __arch_swab64 __arch_swab64 #endif /* __BITS_PER_LONG > 32 */ #endif /* _PARISC_SWAB_H */