Date: Mon, 09 Feb 2015 16:22:31 -0500 From: Jung-uk Kim <jkim@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r278474 - head/sys/sys Message-ID: <54D92517.80203@FreeBSD.org> In-Reply-To: <201502092103.t19L3OAn013792@svn.freebsd.org> References: <201502092103.t19L3OAn013792@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 02/09/2015 16:03, John Baldwin wrote: > Author: jhb Date: Mon Feb 9 21:03:23 2015 New Revision: 278474 > URL: https://svnweb.freebsd.org/changeset/base/278474 > > Log: Use __builtin_popcnt() to implement a BIT_COUNT() operation > for bitsets and use this to implement CPU_COUNT() to count the > number of CPUs in a cpuset. ... This is wrong. __builtin_popcountl() must be used here. __builtin_popcount() is for *int*. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJU2SUTAAoJEHyflib82/FGb3oH/1va9V2zWD+fxz9jzvZzT8ka yqt9dOVpmpztpJ0XtiwCVp42hEtwvjRWefV4Qn7XntNezhF5l4N0BCLN+XmsHhdD eoDCtQKuop+sQM64gqVgQSYBU8oho05mMmvMhIe3zf818X84pr1T6WEHbc+bgXh5 RGOPNRyau7nFldIjWfdwkyUFpiztHkxL94odFU6P6bDiCrfpngyiuOgi7vHf0QTX Ml+9eR1AbCOx69Ntccj35++TqCWY2HKwxdlWXn7D/AXIBwWguzUS3wKOg8Oyd42k 3lPpHU4WYYERtHIY/P1LsPrQV/eB/rEoLTL5RccvEyHDl025QdSAXKwH8ij8Tvk= =HAEQ -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54D92517.80203>