[PATCH 07/11] Add bitcount inlinesfor RTEMS. These are found in FREEBSDs types.h

Sebastian Huber sebastian.huber at embedded-brains.de
Tue May 16 07:46:50 UTC 2017


Hello Kevin,

I know it is considerable more work, but this should move into Newlib.

The

#ifdef __POPCNT__
#define	__bitcount64(x)	__builtin_popcountll((__uint64_t)(x))

needs GCC support. This __POPCNT__ is a clang feature. I don't know 
which version of GCC supports these builtins, but it should use also a 
__GNUC_PREREQ__(X, Y).

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list