IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AssignPackImpl.h
Go to the documentation of this file.
1 // AssignPackImpl.h:
3 // ------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_ASSIGNPACKIMPL_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_ASSIGNPACKIMPL_H__
17 
23 
24 namespace ipsdk {
25 namespace simd {
26 namespace detail {
27 
30 
31 template <typename T>
32 IPSDK_FORCEINLINE
33 BasePack<ePackType::ePT_Scalar, T>
34 AssignPack<eInstructionSet::eIS_Standard, T>::act(const T& value)
35 {
36  BasePack<ePackType::ePT_Scalar, T> out;
37  out._val = value;
38  return out;
39 }
40 
41 template <typename T>
42 IPSDK_FORCEINLINE
43 void
44 AssignPack<eInstructionSet::eIS_Standard, T>::act(
45  BasePack<ePackType::ePT_Scalar, T>& pack, const T& value)
46 {
47  pack._val = value;
48 }
49 
52 
53 } // end of namespace detail
54 } // end of namespace simd
55 } // end of namespace ipsdk
56 
57 #endif // __IPSDKUTIL_INSTRUCTIONSET_DETAIL_STD_ASSIGNPACKIMPL_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Definition of import/export macro for library.