IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Namespaces | Functions
saturated_round.h File Reference

saturated round function; returns the round values of the elements of a pack More...

#include <IPSDKUtil/IPSDKUtilExports.h>
#include <IPSDKUtil/InstructionSet/Arithmetic/detail/SaturatedRoundPack.h>
#include <IPSDKUtil/InstructionSet/IS2Pack.h>
#include <IPSDKUtil/Tools/ForceInline.h>

Go to the source code of this file.

Namespaces

 ipsdk
 Main namespace for IPSDK library.
 
 ipsdk::simd
 Namespace agregating IPSDK SIMD routines and classes.
 

Functions

template<eInstructionSet::domain instructionSet, typename TOut , class PackIn >
IPSDK_FORCEINLINE ipsdk::simd::IS2Pack< instructionSet, TOut >::Type ipsdk::simd::saturated_round (const PackIn &in)
 
template<eInstructionSet::domain instructionSet, class PackIn , class PackOut >
IPSDK_FORCEINLINE void ipsdk::simd::saturated_round (const PackIn &in, PackOut &out)
 

Detailed Description

saturated round function; returns the round values of the elements of a pack

Author
H. Delestre
Date
2015/01/06

given a pack P, with P = {p1, ..., pn}, round(P) returns R, with R ={ round(p1), ..., round(pn)}

ex.: round(P) = R, with P = {1.2, 1.5, 1.9, -3.2, -3.5, -3.8, 0.0, 10.0} and R = {1, 2, 2, -3, -4, -4, 0, 10}