mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-31 07:12:18 +00:00
2a709f28fa
* 0day explit mitigation * Memory corruption prevention * Privilege escalation prevention * Buffer over flow prevention * File System corruption defense * Thread escape prevention This may very well be the most intensive inclusion to BrooklynR. This will not be part of an x86 suite nor it will be released as tool kit. The security core toolkit will remain part of kernel base.
18 lines
371 B
C
18 lines
371 B
C
#ifndef _ASM_GENERIC_BITOPS_BUILTIN_FFS_H_
|
|
#define _ASM_GENERIC_BITOPS_BUILTIN_FFS_H_
|
|
|
|
/**
|
|
* ffs - find first bit set
|
|
* @x: the word to search
|
|
*
|
|
* This is defined the same way as
|
|
* the libc and compiler builtin ffs routines, therefore
|
|
* differs in spirit from the above ffz (man ffs).
|
|
*/
|
|
static __always_inline int ffs(int x)
|
|
{
|
|
return __builtin_ffs(x);
|
|
}
|
|
|
|
#endif
|