diff --git a/src/LIB/BITREP/br_transcendentals.cpp b/src/LIB/BITREP/br_transcendentals.cpp index f0ce340a74baff86ac7b4ab927348d7d55e32391..b837517f961f1ece4499a279a5afdf17fdba48f1 100644 --- a/src/LIB/BITREP/br_transcendentals.cpp +++ b/src/LIB/BITREP/br_transcendentals.cpp @@ -20,9 +20,12 @@ namespace bitrep /************* * CONSTANTS * *************/ - -static const double const_2_over_pi = 6.3661977236758138e-1; +#ifdef MNH_BITREP_OMP +#pragma omp declare target +#endif +static const double const_2_over_pi = 6.3661977236758138e-1; + static const double __sin_cos_coefficient[16] = { 1.590307857061102704e-10, /* sin0 */ @@ -43,7 +46,9 @@ static const double __sin_cos_coefficient[16] = -5.000000000000000000e-01, /* cos6 */ 1.000000000000000000e+00, /* cos7 */ }; - +#ifdef MNH_BITREP_OMP +#pragma omp end declare target +#endif /*****************************************