Date: Mon, 09 Feb 2015 16:08:59 -0500 From: John Baldwin <jhb@freebsd.org> To: src-committers@freebsd.org Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r278474 - head/sys/sys Message-ID: <1698688.fEq0HxqPxg@ralph.baldwin.cx> 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
On Monday, February 09, 2015 09:03:24 PM 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. > > MFC after: 2 weeks Yes, __builtin_popcnt() works with GCC 4.2. It should also allow the compiler to DTRT in userland uses of this if -msse4.2 is enabled. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1698688.fEq0HxqPxg>