reformat OpenMPWrapper.h

This commit is contained in:
Dennis Luxen 2014-05-07 11:42:41 +02:00
parent bf5d83d228
commit dee3529f14

View File

@ -29,13 +29,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define OPENMP_WRAPPER_H #define OPENMP_WRAPPER_H
#ifdef _OPENMP #ifdef _OPENMP
extern "C" { extern "C" {
#include <omp.h> #include <omp.h>
} }
#else #else
inline int omp_get_num_procs () { return 1; } inline int omp_get_num_procs() { return 1; }
inline int omp_get_max_threads () { return 1; } inline int omp_get_max_threads() { return 1; }
inline int omp_get_thread_num () { return 0; } inline int omp_get_thread_num() { return 0; }
inline void omp_set_num_threads (int i) {} inline void omp_set_num_threads(int i) {}
#endif /* _OPENMP */ #endif // _OPENMP
#endif /* OPEN_MP_WRAPPER_H */ #endif // OPENMP_WRAPPER_H