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.hu...@embedded-brains.de
PGP     : Public key available on request.

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

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to