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

modulo function; returns the remainder of the integral division of pack A with pack B; result is in range [0; mod[ More...

#include <IPSDKUtil/IPSDKUtilExports.h>
#include <IPSDKUtil/InstructionSet/Arithmetic/detail/ModuloPack.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, class PackT >
IPSDK_FORCEINLINE PackT ipsdk::simd::modulo (const PackT &in, const PackT &m)
 
template<eInstructionSet::domain instructionSet, class PackT >
IPSDK_FORCEINLINE void ipsdk::simd::modulo (const PackT &in, const PackT &m, PackT &out)
 

Detailed Description

modulo function; returns the remainder of the integral division of pack A with pack B; result is in range [0; mod[

Author
H. Delestre
Date
2018/07/02

\ note current implementation is not exact, cumulating float approximation of, successively floor, multiplication and substraction operations. An implementation of exact modulo could be considered (see file src/IPSDKUtil/InstructionSet/fmod_exact_implementation.7z)