/
usr
/
include
/
mips-linux-gnu
/
asm
/
/usr/include/mips-linux-gnu/asm
mkdir
upload
Name
Size
Mode
Actions
auxvec.h
616
0644
edit
dl
rm
bitfield.h
766
0644
edit
dl
rm
bitsperlong.h
244
0644
edit
dl
rm
bpf_perf_event.h
40
0644
edit
dl
rm
break.h
1321
0644
edit
dl
rm
byteorder.h
580
0644
edit
dl
rm
cachectl.h
800
0644
edit
dl
rm
errno.h
5777
0644
edit
dl
rm
fcntl.h
2013
0644
edit
dl
rm
hwcap.h
700
0644
edit
dl
rm
inst.h
29908
0644
edit
dl
rm
ioctl.h
781
0644
edit
dl
rm
ioctls.h
4834
0644
edit
dl
rm
ipcbuf.h
32
0644
edit
dl
rm
kvm.h
7690
0644
edit
dl
rm
kvm_para.h
34
0644
edit
dl
rm
mman.h
4702
0644
edit
dl
rm
msgbuf.h
2327
0644
edit
dl
rm
param.h
476
0644
edit
dl
rm
perf_regs.h
864
0644
edit
dl
rm
poll.h
217
0644
edit
dl
rm
posix_types.h
757
0644
edit
dl
rm
ptrace.h
2734
0644
edit
dl
rm
reg.h
5426
0644
edit
dl
rm
resource.h
1067
0644
edit
dl
rm
sembuf.h
1079
0644
edit
dl
rm
setup.h
168
0644
edit
dl
rm
sgidefs.h
1054
0644
edit
dl
rm
shmbuf.h
1937
0644
edit
dl
rm
sigcontext.h
2549
0644
edit
dl
rm
siginfo.h
857
0644
edit
dl
rm
signal.h
3631
0644
edit
dl
rm
socket.h
4987
0644
edit
dl
rm
sockios.h
768
0644
edit
dl
rm
stat.h
3015
0644
edit
dl
rm
statfs.h
1987
0644
edit
dl
rm
swab.h
1460
0644
edit
dl
rm
sysmips.h
841
0644
edit
dl
rm
termbits.h
6151
0644
edit
dl
rm
termios.h
2130
0644
edit
dl
rm
types.h
881
0644
edit
dl
rm
ucontext.h
2198
0644
edit
dl
rm
unistd.h
998
0644
edit
dl
rm
unistd_n32.h
16564
0644
edit
dl
rm
unistd_n64.h
15390
0644
edit
dl
rm
unistd_o32.h
18382
0644
edit
dl
rm
Edit:
/usr/lib/linux/uapi/mips/asm/swab.h
(1460B)
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996, 99, 2003 by Ralf Baechle */ #ifndef _ASM_SWAB_H #define _ASM_SWAB_H #include <linux/types.h> #define __SWAB_64_THRU_32__ #if !defined(__mips16) && \ ((defined(__mips_isa_rev) && (__mips_isa_rev >= 2)) || \ defined(_MIPS_ARCH_LOONGSON3A)) static __inline__ __u16 __arch_swab16(__u16 x) { __asm__( " .set push \n" " .set arch=mips32r2 \n" " wsbh %0, %1 \n" " .set pop \n" : "=r" (x) : "r" (x)); return x; } #define __arch_swab16 __arch_swab16 static __inline__ __u32 __arch_swab32(__u32 x) { __asm__( " .set push \n" " .set arch=mips32r2 \n" " wsbh %0, %1 \n" " rotr %0, %0, 16 \n" " .set pop \n" : "=r" (x) : "r" (x)); return x; } #define __arch_swab32 __arch_swab32 /* * Having already checked for MIPS R2, enable the optimized version for * 64-bit kernel on r2 CPUs. */ #ifdef __mips64 static __inline__ __u64 __arch_swab64(__u64 x) { __asm__( " .set push \n" " .set arch=mips64r2 \n" " dsbh %0, %1 \n" " dshd %0, %0 \n" " .set pop \n" : "=r" (x) : "r" (x)); return x; } #define __arch_swab64 __arch_swab64 #endif /* __mips64 */ #endif /* (not __mips16) and (MIPS R2 or newer or Loongson 3A) */ #endif /* _ASM_SWAB_H */
Save
cmd:
run