15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_SSE2_DIVPACK_H__ 16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_SSE2_DIVPACK_H__ 27 #include <boost/type_traits/is_same.hpp> 28 #include <boost/utility/enable_if.hpp> 93 template <
typename TIn1,
typename TIn2>
95 typename boost::enable_if_c<!boost::is_same<TIn1, TIn2>::value
96 && boost::is_same<TIn1, typename PromotedType<TIn1, TIn2>::Type>::value
106 cast<eInstructionSet::eIS_Sse2, TIn2, TIn1>(in2);
118 cast<eInstructionSet::eIS_Sse2, TIn2, TIn1>(in2, in2Promoted);
125 template <
typename TIn1,
typename TIn2>
127 typename boost::enable_if_c<!boost::is_same<TIn1, TIn2>::value
128 && !boost::is_same<TIn1, typename PromotedType<TIn1, TIn2>::Type>::value
138 cast<eInstructionSet::eIS_Sse2, TIn1, TIn2>(in1);
151 cast<eInstructionSet::eIS_Sse2, TIn1, TIn2>(in1, in1Promoted);
153 in1Promoted, in2, out);
159 template <
typename TIn>
161 typename boost::enable_if_c<boost::is_integral<TIn>::value>::type>
170 cast<eInstructionSet::eIS_Sse2, TIn, ipReal32>(in1);
172 cast<eInstructionSet::eIS_Sse2, TIn, ipReal32>(in2);
176 return cast<eInstructionSet::eIS_Sse2, ipReal32, TIn>(outCast);
187 cast<eInstructionSet::eIS_Sse2>(in1, in1Cast);
189 cast<eInstructionSet::eIS_Sse2>(in2, in2Cast);
193 cast<eInstructionSet::eIS_Sse2>(outCast, out);
205 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_SSE2_DIVPACK_H__ Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
cast function; casts a Pack<instructionSet, TIn> to a Pack<instructionSet, TOut>
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
BasePack class; defines a set of scalars (for instruction set "standard") or registers (for all other...
eInstructionSet
Enumerate for processor instruction set description.
Definition: InstructionSetTypes.h:31
defines template structures PromotedType<T1, T2> and PromotedType3<T1, T2, T3>; their attribute Type ...
Predefined types associated to instruction set management.
Definition of import/export macro for library.
DivReg template specialization for instruction set SSE2 and for ipReal64.
Definition: DivReg.h:56
Streaming SIMD Extensions 2.
Definition: InstructionSetTypes.h:36
float ipReal32
Base types definition.
Definition: BaseTypes.h:56
Definition: BinaryPackOp.h:31
DivReg template specialization for instruction set SSE2 and for ipReal32.
Definition: DivReg.h:33
structure containing intrinsic registers used to store vectorized data
Definition: BasePackDecl.h:29