| @@ -43,10 +43,10 @@ $compiler = DEC if ($data =~ /COMPILER_DEC/); | |||||
| $compiler = GCC if ($compiler eq ""); | $compiler = GCC if ($compiler eq ""); | ||||
| $os = Linux if ($data =~ /OS_LINUX/); | $os = Linux if ($data =~ /OS_LINUX/); | ||||
| $os = FreeBSD if ($data =~ /OS_FreeBSD/); | |||||
| $os = NetBSD if ($data =~ /OS_NetBSD/); | |||||
| $os = Darwin if ($data =~ /OS_Darwin/); | |||||
| $os = SunOS if ($data =~ /OS_SunOS/); | |||||
| $os = FreeBSD if ($data =~ /OS_FREEBSD/); | |||||
| $os = NetBSD if ($data =~ /OS_NETBSD/); | |||||
| $os = Darwin if ($data =~ /OS_DARWIN/); | |||||
| $os = SunOS if ($data =~ /OS_SUNOS/); | |||||
| $os = AIX if ($data =~ /OS_AIX/); | $os = AIX if ($data =~ /OS_AIX/); | ||||
| $os = osf if ($data =~ /OS_OSF/); | $os = osf if ($data =~ /OS_OSF/); | ||||
| $os = WINNT if ($data =~ /OS_WINNT/); | $os = WINNT if ($data =~ /OS_WINNT/); | ||||
| @@ -68,7 +68,7 @@ extern "C" { | |||||
| #define SMP | #define SMP | ||||
| #endif | #endif | ||||
| #if defined(OS_WINNT) || defined(OS_CYGWIN_NT) || defined(OS_Interix) | |||||
| #if defined(OS_WINNT) || defined(OS_CYGWIN_NT) || defined(OS_INTERIX) | |||||
| #define WINDOWS_ABI | #define WINDOWS_ABI | ||||
| #define OS_WINDOWS | #define OS_WINDOWS | ||||
| @@ -282,7 +282,7 @@ REALNAME: | |||||
| #define EPILOGUE .end REALNAME | #define EPILOGUE .end REALNAME | ||||
| #endif | #endif | ||||
| #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_NetBSD) || defined(__ELF__) | |||||
| #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_NETBSD) || defined(__ELF__) | |||||
| #define PROLOGUE \ | #define PROLOGUE \ | ||||
| .text; \ | .text; \ | ||||
| .align 16; \ | .align 16; \ | ||||
| @@ -353,7 +353,7 @@ REALNAME: | |||||
| #define EPILOGUE .end REALNAME | #define EPILOGUE .end REALNAME | ||||
| #endif | #endif | ||||
| #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_NetBSD) || defined(__ELF__) || defined(C_PGI) | |||||
| #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_NETBSD) || defined(__ELF__) || defined(C_PGI) | |||||
| #define PROLOGUE \ | #define PROLOGUE \ | ||||
| .text; \ | .text; \ | ||||
| .align 512; \ | .align 512; \ | ||||
| @@ -35,19 +35,19 @@ OS_LINUX | |||||
| #endif | #endif | ||||
| #if defined(__FreeBSD__) | #if defined(__FreeBSD__) | ||||
| OS_FreeBSD | |||||
| OS_FREEBSD | |||||
| #endif | #endif | ||||
| #if defined(__NetBSD__) | #if defined(__NetBSD__) | ||||
| OS_NetBSD | |||||
| OS_NETBSD | |||||
| #endif | #endif | ||||
| #if defined(__sun) | #if defined(__sun) | ||||
| OS_SunOS | |||||
| OS_SUNOS | |||||
| #endif | #endif | ||||
| #if defined(__APPLE__) | #if defined(__APPLE__) | ||||
| OS_Darwin | |||||
| OS_DARWIN | |||||
| #endif | #endif | ||||
| #if defined(_AIX) | #if defined(_AIX) | ||||
| @@ -103,7 +103,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
| #include <sys/syscall.h> | #include <sys/syscall.h> | ||||
| #endif | #endif | ||||
| #if defined(OS_FREEBSD) || defined(OS_Darwin) | |||||
| #if defined(OS_FREEBSD) || defined(OS_DARWIN) | |||||
| #include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
| #endif | #endif | ||||
| @@ -185,7 +185,7 @@ int get_num_procs(void) { | |||||
| #endif | #endif | ||||
| #if defined(OS_FREEBSD) || defined(OS_Darwin) | |||||
| #if defined(OS_FREEBSD) || defined(OS_DARWIN) | |||||
| int get_num_procs(void) { | int get_num_procs(void) { | ||||
| @@ -215,7 +215,7 @@ int goto_get_num_procs (void) { | |||||
| int blas_get_cpu_number(void){ | int blas_get_cpu_number(void){ | ||||
| char *p; | char *p; | ||||
| #if defined(OS_LINUX) || defined(OS_WINDOWS) || defined(OS_FREEBSD) || defined(OS_Darwin) | |||||
| #if defined(OS_LINUX) || defined(OS_WINDOWS) || defined(OS_FREEBSD) || defined(OS_DARWIN) | |||||
| int max_num; | int max_num; | ||||
| #endif | #endif | ||||
| int blas_goto_num = 0; | int blas_goto_num = 0; | ||||
| @@ -223,7 +223,7 @@ int blas_get_cpu_number(void){ | |||||
| if (blas_num_threads) return blas_num_threads; | if (blas_num_threads) return blas_num_threads; | ||||
| #if defined(OS_LINUX) || defined(OS_WINDOWS) || defined(OS_FREEBSD) || defined(OS_Darwin) | |||||
| #if defined(OS_LINUX) || defined(OS_WINDOWS) || defined(OS_FREEBSD) || defined(OS_DARWIN) | |||||
| max_num = get_num_procs(); | max_num = get_num_procs(); | ||||
| #endif | #endif | ||||
| @@ -250,7 +250,7 @@ int blas_get_cpu_number(void){ | |||||
| else if (blas_omp_num > 0) blas_num_threads = blas_omp_num; | else if (blas_omp_num > 0) blas_num_threads = blas_omp_num; | ||||
| else blas_num_threads = MAX_CPU_NUMBER; | else blas_num_threads = MAX_CPU_NUMBER; | ||||
| #if defined(OS_LINUX) || defined(OS_WINDOWS) || defined(OS_FREEBSD) || defined(OS_Darwin) | |||||
| #if defined(OS_LINUX) || defined(OS_WINDOWS) || defined(OS_FREEBSD) || defined(OS_DARWIN) | |||||
| if (blas_num_threads > max_num) blas_num_threads = max_num; | if (blas_num_threads > max_num) blas_num_threads = max_num; | ||||
| #endif | #endif | ||||