adding __have_native_{rsqrtd,rcpd} to select between native support for double precision reciprocals and using slower but safe version in stdlib
This commit is contained in:
10
ispc.h
10
ispc.h
@@ -281,6 +281,10 @@ public:
|
||||
bool hasScatter() const {return m_hasScatter;}
|
||||
|
||||
bool hasTranscendentals() const {return m_hasTranscendentals;}
|
||||
|
||||
bool hasRsqrtd() const {return m_hasRsqrtd;}
|
||||
|
||||
bool hasRcpd() const {return m_hasRcpd;}
|
||||
|
||||
private:
|
||||
|
||||
@@ -380,6 +384,12 @@ private:
|
||||
/** Indicates whether the target has support for transcendentals (beyond
|
||||
sqrt, which we assume that all of them handle). */
|
||||
bool m_hasTranscendentals;
|
||||
|
||||
/** Indicates whether there is an ISA double precision rsqrt. */
|
||||
bool m_hasRsqrtd;
|
||||
|
||||
/** Indicates whether there is an ISA double precision rcp. */
|
||||
bool m_hasRcpd;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user