Skip to content

Commit

Permalink
Merge pull request #12904 from VinInn/fixInnerDeltaPhiforicc
Browse files Browse the repository at this point in the history
fix InnerDeltaPhi for icc
  • Loading branch information
cmsbuild committed Jan 12, 2016
2 parents 49d3978 + abc0cf8 commit a9ff245
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RecoTracker/TkHitPairs/src/InnerDeltaPhi.cc
Expand Up @@ -44,6 +44,13 @@ namespace {
return std::abs(x) <= 1 ? std::asin(x) : (x > 0 ? T(M_PI/2) : -T(M_PI/2));
}
}
#else // for icc
namespace {
template <class T>
inline T cropped_asin(T x) {
return std::abs(x) <= 1 ? std::asin(x) : (x > 0 ? T(M_PI/2) : -T(M_PI/2));
}
}
#endif


Expand Down

0 comments on commit a9ff245

Please sign in to comment.