Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files21
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- __ffs.h
- __fls.h
- arch_hweight.h
- atomic.h
- builtin-__ffs.h
- builtin-__fls.h
- builtin-ffs.h
- builtin-fls.h
- const_hweight.h
- ext2-atomic-setbit.h
- ext2-atomic.h
- ffs.h
- ffz.h
- find.h
- fls.h
- fls64.h
- hweight.h
- le.h
- lock.h
- non-atomic.h
- sched.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
include/asm-generic/bitops/builtin-fls.h
Text · 403 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_GENERIC_BITOPS_BUILTIN_FLS_H_
#define _ASM_GENERIC_BITOPS_BUILTIN_FLS_H_
/**
* fls - find last (most-significant) bit set
* @x: the word to search
*
* This is defined the same way as ffs.
* Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
*/
static __always_inline int fls(int x)
{
return x ? sizeof(x) * 8 - __builtin_clz(x) : 0;
}
#endif