mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Better way of setting default USE_OPENMP (nw)
This commit is contained in:
parent
ecb50c0c09
commit
dad79cb4d2
1 changed files with 7 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
#ifndef NLCONFIG_H_
|
||||
#define NLCONFIG_H_
|
||||
|
||||
/* FIXME: at some time, make it compile on it's own */
|
||||
/* FIXME: at some time, make it compile on its own */
|
||||
|
||||
#include "osdcore.h"
|
||||
#include "corealloc.h"
|
||||
|
@ -39,7 +39,13 @@
|
|||
|
||||
// The following adds about 10% performance ...
|
||||
|
||||
#if !defined(USE_OPENMP)
|
||||
#if defined(_OPENMP)
|
||||
#define USE_OPENMP (1)
|
||||
#else // defined(_OPENMP)
|
||||
#define USE_OPENMP (0)
|
||||
#endif // defined(_OPENMP)
|
||||
#endif // !defined(USE_OPENMP)
|
||||
|
||||
// Use nano-second resolution - Sufficient for now
|
||||
#define NETLIST_INTERNAL_RES (U64(1000000000))
|
||||
|
|
Loading…
Reference in a new issue