cregit-Linux how code gets into the kernel

Release 4.14 arch/powerpc/boot/swab.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PPC_BOOT_SWAB_H_

#define _PPC_BOOT_SWAB_H_


static inline u16 swab16(u16 x) { return ((x & (u16)0x00ffU) << 8) | ((x & (u16)0xff00U) >> 8); }

Contributors

PersonTokensPropCommitsCommitProp
Cédric Le Goater37100.00%1100.00%
Total37100.00%1100.00%


static inline u32 swab32(u32 x) { return ((x & (u32)0x000000ffUL) << 24) | ((x & (u32)0x0000ff00UL) << 8) | ((x & (u32)0x00ff0000UL) >> 8) | ((x & (u32)0xff000000UL) >> 24); }

Contributors

PersonTokensPropCommitsCommitProp
Cédric Le Goater63100.00%1100.00%
Total63100.00%1100.00%


static inline u64 swab64(u64 x) { return (u64)((x & (u64)0x00000000000000ffULL) << 56) | (u64)((x & (u64)0x000000000000ff00ULL) << 40) | (u64)((x & (u64)0x0000000000ff0000ULL) << 24) | (u64)((x & (u64)0x00000000ff000000ULL) << 8) | (u64)((x & (u64)0x000000ff00000000ULL) >> 8) | (u64)((x & (u64)0x0000ff0000000000ULL) >> 24) | (u64)((x & (u64)0x00ff000000000000ULL) >> 40) | (u64)((x & (u64)0xff00000000000000ULL) >> 56); }

Contributors

PersonTokensPropCommitsCommitProp
Cédric Le Goater139100.00%1100.00%
Total139100.00%1100.00%

#endif /* _PPC_BOOT_SWAB_H_ */

Overall Contributors

PersonTokensPropCommitsCommitProp
Cédric Le Goater24899.60%150.00%
Greg Kroah-Hartman10.40%150.00%
Total249100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.