From 141ea81ba574090a8183cb86d4c3647f097e0242 Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Mon, 14 Apr 2014 19:33:52 +0400 Subject: [PATCH] Revert trigonometry to stdlib implementation on MIC --- ispc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ispc.cpp b/ispc.cpp index 12898a8d..7ea97247 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -449,7 +449,10 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) : this->m_maskBitCount = 1; this->m_hasHalf = true; this->m_hasTranscendentals = true; - this->m_hasTrigonometry = true; + // It's set to false, because stdlib implementation of math functions + // is faster on MIC, than "native" implementation profided by the + // icc compiler. + this->m_hasTrigonometry = false; this->m_hasGather = this->m_hasScatter = true; this->m_hasRsqrtd = this->m_hasRcpd = true; }