p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/asm-generic/bitops/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/asm-generic/bitops/const_hweight.h
#ifndef _ASM_GENERIC_BITOPS_CONST_HWEIGHT_H_
#define _ASM_GENERIC_BITOPS_CONST_HWEIGHT_H_

/*
 * Compile time versions of __arch_hweightN()
 */
#define __const_hweight8(w)		\
	((unsigned int)			\
	 ((!!((w) & (1ULL << 0))) +	\
	  (!!((w) & (1ULL << 1))) +	\
	  (!!((w) & (1ULL << 2))) +	\
	  (!!((w) & (1ULL << 3))) +	\
	  (!!((w) & (1ULL << 4))) +	\
	  (!!((w) & (1ULL << 5))) +	\
	  (!!((w) & (1ULL << 6))) +	\
	  (!!((w) & (1ULL << 7)))))

#define __const_hweight16(w) (__const_hweight8(w)  + __const_hweight8((w)  >> 8 ))
#define __const_hweight32(w) (__const_hweight16(w) + __const_hweight16((w) >> 16))
#define __const_hweight64(w) (__const_hweight32(w) + __const_hweight32((w) >> 32))

/*
 * Generic interface.
 */
#define hweight8(w)  (__builtin_constant_p(w) ? __const_hweight8(w)  : __arch_hweight8(w))
#define hweight16(w) (__builtin_constant_p(w) ? __const_hweight16(w) : __arch_hweight16(w))
#define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
#define hweight64(w) (__builtin_constant_p(w) ? __const_hweight64(w) : __arch_hweight64(w))

/*
 * Interface for known constant arguments
 */
#define HWEIGHT8(w)  (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
#define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
#define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
#define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))

/*
 * Type invariant interface to the compile time constant hweight functions.
 */
#define HWEIGHT(w)   HWEIGHT64((u64)w)

#endif /* _ASM_GENERIC_BITOPS_CONST_HWEIGHT_H_ */
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
September 29 2025 07:01:10
0 / 0
0755
__ffs.h
0.721 KB
November 06 2023 09:15:52
0 / 0
0644
__fls.h
0.86 KB
November 06 2023 09:15:52
0 / 0
0644
arch_hweight.h
0.504 KB
November 06 2023 09:15:52
0 / 0
0644
atomic.h
5.464 KB
November 06 2023 09:15:52
0 / 0
0644
builtin-__ffs.h
0.332 KB
November 06 2023 09:15:52
0 / 0
0644
builtin-__fls.h
0.388 KB
November 06 2023 09:15:52
0 / 0
0644
builtin-ffs.h
0.362 KB
November 06 2023 09:15:52
0 / 0
0644
builtin-fls.h
0.355 KB
November 06 2023 09:15:52
0 / 0
0644
const_hweight.h
1.633 KB
November 06 2023 09:15:52
0 / 0
0644
count_zeros.h
1.639 KB
November 06 2023 09:15:52
0 / 0
0644
ext2-atomic-setbit.h
0.355 KB
November 06 2023 09:15:52
0 / 0
0644
ext2-atomic.h
0.548 KB
November 06 2023 09:15:52
0 / 0
0644
ffs.h
0.601 KB
November 06 2023 09:15:52
0 / 0
0644
ffz.h
0.279 KB
November 06 2023 09:15:52
0 / 0
0644
find.h
1.634 KB
November 06 2023 09:15:52
0 / 0
0644
fls.h
0.62 KB
November 06 2023 09:15:52
0 / 0
0644
fls64.h
0.802 KB
November 06 2023 09:15:52
0 / 0
0644
hweight.h
0.21 KB
November 06 2023 09:15:52
0 / 0
0644
le.h
2.148 KB
November 06 2023 09:15:52
0 / 0
0644
lock.h
1.318 KB
November 06 2023 09:15:52
0 / 0
0644
non-atomic.h
2.96 KB
November 06 2023 09:15:52
0 / 0
0644
sched.h
0.704 KB
November 06 2023 09:15:52
0 / 0
0644