Integration Wrappers for Intel® Integrated Performance Primitives Developer Guide and Reference 2018

iwValueSaturate

Syntax

IW_DECL(double) iwValueSaturate(
    double      val,    
    IppDataType dstType 
);

Parameters

val

Input value.

dstType

Data type of the saturation range.

Description

This function casts a value to the input type with rounding and saturation.

Return Values

Saturated value.