import
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#ifndef INCLUDED_CPU_CLZ_H
|
||||
#define INCLUDED_CPU_CLZ_H
|
||||
|
||||
|
||||
#ifndef INCLUDED_OS_TYPES_H
|
||||
#include <os_types.h>
|
||||
#endif /*INCLUDED_OS_TYPES_H*/
|
||||
|
||||
os_uint_t cpu_clz(os_uint_t value); // 计算一个无符号整数中前导零的数量,即从最高位开始连续的0的个数,直到遇到第一个1为止。返回值范围为0-32,如果输入值为0,则返回32。
|
||||
|
||||
#endif /* INCLUDED_CPU_CLZ_H */
|
||||
Reference in New Issue
Block a user