[Mono-bugs] [Bug 487846] PPC code gen is inefficient in several areas

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jun 19 09:36:48 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=487846

User miguel at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=487846#c9


Miguel de Icaza <miguel at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |miguel at novell.com




--- Comment #9 from Miguel de Icaza <miguel at novell.com>  2009-06-19 07:36:46 MDT ---
Steve,

To detect the number of CPUs available on the system on Linux, you can use:

#include <unistd.h>

sysconf (_SC_NPROCESSORS_ONLN);

That returns the number of processors, if the value -1 is returned, it means
that the _SC_NPROCESSORS_ONLN query is not supported in that operating
system/kernel combination (should be supported for Linux as far as the eye can
see though).

But if you get -1, then another operating system specific hack can be used.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list