IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
CeilReg.h
Go to the documentation of this file.
1 // CeilReg.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_CEILREG_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_CEILREG_H__
17 
20 
21 namespace ipsdk {
22 namespace simd {
23 namespace detail {
24 
27 
29 template <>
31 {
32  static IPSDK_FORCEINLINE
33  ipReal32
34  act(const ipReal32& in)
35  {
36  ipReal32 out;
37  act(in, out);
38  return out;
39  }
40 
41  static IPSDK_FORCEINLINE
42  void
43  act(const ipReal32& in, ipReal32& out)
44  {
45  out = std::ceil(in);
46  }
47 };
48 
51 
52 } // end of namespace detail
53 } // end of namespace simd
54 } // end of namespace ipsdk
55 
56 #endif // __IPSDKUTIL_INSTRUCTIONSET_ARITHMETIC_DETAIL_STD_CEILREG_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
template structure which is specialized to implement the computation of value rounded to closest even...
Definition: CeilReg.h:36
eInstructionSet
Enumerate for processor instruction set description.
Definition: InstructionSetTypes.h:31
Definition of import/export macro for library.
compiler optimisations only
Definition: InstructionSetTypes.h:34
float ipReal32
Base types definition.
Definition: BaseTypes.h:56