Skip to content

Commit

Permalink
FreeBSD: fix OS_FreeBSD -> OS_FREEBSD typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nolta committed May 21, 2012
1 parent 839b18a commit 4e29b6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion common_x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
10 changes: 5 additions & 5 deletions driver/others/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <sys/syscall.h>
#endif

#if defined(OS_FreeBSD) || defined(OS_Darwin)
#if defined(OS_FREEBSD) || defined(OS_Darwin)
#include <sys/sysctl.h>
#endif

Expand Down Expand Up @@ -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) {

Expand Down Expand Up @@ -215,15 +215,15 @@ 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;
int blas_omp_num = 0;

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

Expand All @@ -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

Expand Down

0 comments on commit 4e29b6f

Please sign in to comment.