From 4e29b6ffc0a8e7c748975f44194098ad3d229f14 Mon Sep 17 00:00:00 2001 From: Mike Nolta Date: Mon, 21 May 2012 16:57:19 -0400 Subject: [PATCH] FreeBSD: fix OS_FreeBSD -> OS_FREEBSD typos --- common_x86.h | 2 +- common_x86_64.h | 2 +- driver/others/memory.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/common_x86.h b/common_x86.h index fbb91f8884..eaf395806f 100644 --- a/common_x86.h +++ b/common_x86.h @@ -282,7 +282,7 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){ #define EPILOGUE .end REALNAME #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 \ .text; \ .align 16; \ diff --git a/common_x86_64.h b/common_x86_64.h index 53b702185b..735c9b2943 100644 --- a/common_x86_64.h +++ b/common_x86_64.h @@ -353,7 +353,7 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){ #define EPILOGUE .end REALNAME #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 \ .text; \ .align 512; \ diff --git a/driver/others/memory.c b/driver/others/memory.c index 3f1a5f60a5..9a925d2902 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -103,7 +103,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #endif -#if defined(OS_FreeBSD) || defined(OS_Darwin) +#if defined(OS_FREEBSD) || defined(OS_Darwin) #include #endif @@ -185,7 +185,7 @@ int get_num_procs(void) { #endif -#if defined(OS_FreeBSD) || defined(OS_Darwin) +#if defined(OS_FREEBSD) || defined(OS_Darwin) int get_num_procs(void) { @@ -215,7 +215,7 @@ int goto_get_num_procs (void) { int blas_get_cpu_number(void){ 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; #endif int blas_goto_num = 0; @@ -223,7 +223,7 @@ int blas_get_cpu_number(void){ 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(); #endif @@ -250,7 +250,7 @@ int blas_get_cpu_number(void){ else if (blas_omp_num > 0) blas_num_threads = blas_omp_num; 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; #endif