/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _M68K_SWAB_H #define _M68K_SWAB_H #include <linux/types.h> #include <linux/compiler.h> #define __SWAB_64_THRU_32__ #if defined (__mcfisaaplus__) || defined (__mcfisac__) static inline __attribute_const__ __u32 __arch_swab32(__u32 val) { __asm__("byterev %0" : "=d" (val) : "0" (val)); return val; } #define __arch_swab32 __arch_swab32 #elif !defined(__mcoldfire__) static inline __attribute_const__ __u32 __arch_swab32(__u32 val) { __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val)); return val; } #define __arch_swab32 __arch_swab32 #endif #endif /* _M68K_SWAB_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 530 B | 0644 |
|
a.out.h | File | 772 B | 0644 |
|
bootinfo-amiga.h | File | 1.46 KB | 0644 |
|
bootinfo-apollo.h | File | 582 B | 0644 |
|
bootinfo-atari.h | File | 1015 B | 0644 |
|
bootinfo-hp300.h | File | 1.5 KB | 0644 |
|
bootinfo-mac.h | File | 4.45 KB | 0644 |
|
bootinfo-q40.h | File | 358 B | 0644 |
|
bootinfo-vme.h | File | 1.75 KB | 0644 |
|
bootinfo.h | File | 4.83 KB | 0644 |
|
byteorder.h | File | 188 B | 0644 |
|
cachectl.h | File | 559 B | 0644 |
|
fcntl.h | File | 376 B | 0644 |
|
ioctls.h | File | 220 B | 0644 |
|
param.h | File | 254 B | 0644 |
|
poll.h | File | 197 B | 0644 |
|
posix_types.h | File | 733 B | 0644 |
|
ptrace.h | File | 1.78 KB | 0644 |
|
setup.h | File | 461 B | 0644 |
|
sigcontext.h | File | 627 B | 0644 |
|
signal.h | File | 2.56 KB | 0644 |
|
stat.h | File | 1.65 KB | 0644 |
|
swab.h | File | 665 B | 0644 |
|
unistd.h | File | 10.59 KB | 0644 |
|