From 33935bfef12f4a5b68e4c4524f100b8493bede88 Mon Sep 17 00:00:00 2001 From: Vincenzo Innocente Date: Mon, 11 Jan 2016 10:22:35 +0100 Subject: [PATCH] fix for icc (cherry picked from commit abc0cf8c4e8104f2c8ed7f654e9063ee136965c9) --- RecoTracker/TkHitPairs/src/InnerDeltaPhi.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RecoTracker/TkHitPairs/src/InnerDeltaPhi.cc b/RecoTracker/TkHitPairs/src/InnerDeltaPhi.cc index 4f467cf77976f..38007a57a443c 100644 --- a/RecoTracker/TkHitPairs/src/InnerDeltaPhi.cc +++ b/RecoTracker/TkHitPairs/src/InnerDeltaPhi.cc @@ -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 + 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