mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
libc: Implement popcount/popcountl/popcountll
specified here: https://www.unix.com/man-page/netbsd/3/popcountll/ Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Brennan Ashton
parent
657d1c9fdc
commit
ba3f12c93f
@@ -89,6 +89,10 @@ int flsl(long j);
|
||||
int flsll(long long j);
|
||||
#endif
|
||||
|
||||
unsigned int popcount(unsigned int j);
|
||||
unsigned int popcountl(unsigned long j);
|
||||
unsigned int popcountll(unsigned long long j);
|
||||
|
||||
FAR char *index(FAR const char *s, int c);
|
||||
FAR char *rindex(FAR const char *s, int c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user