# include <unistd.h>
#endif
-#if defined(__MACH__) && defined(__ppc__) && defined(__APPLE__)
+#if defined(__MACH__) && defined(__APPLE__)
# include <sys/types.h>
# include <sys/sysctl.h>
#endif
return sysconf(_SC_NPROC_ONLN);
}
-# elif defined(__MACH__) && defined(__ppc__) && defined(__APPLE__)
+# elif defined(__MACH__) && defined(__APPLE__)
// This is only tested on a dual G5 2.5GHz running MacOSX 10.3.6
-// and gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)
+// and on an Intel Mac Book Pro.
// If it doesnt work please contact the mailinglist.
unsigned int MultithreadInfo::get_n_cpus()
{
<h3>base</h3>
<ol>
+ <li> <p>Fixed: MultithreadInfo::n_cpus now gives the correct result
+ also on my Intel MacBook Pro.
+ <br>
+ (Luca Heltai 2007/11/12)
+ </p> </li>
+
<li> <p>New: There is now a template numbers::NumberTraits that provides
the means to implement linear algebra and other algorithms for both real
and complex data types.
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams