Intel® Integrated Performance Primitives Developer Guide and Reference

ID 790148
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

SetDenormAreZeros

Enables or disables denormals-are-zero (DAZ) mode.

Syntax

IppStatus ippSetDenormAreZeros(int value);

Include Files

ippcore.h

Parameters

value

Switch to set or clear the corresponding bit of the MXCSR register.

  • When value is not equal to zero, denormals-are-zero (DAZ) mode is enabled

  • When value is set to zero, DAZ mode is disabled

Description

This function enables the DAZ mode for processors that support Intel® Streaming SIMD Extensions instructions. The DAZ mode controls the processor response to a SIMD floating-point denormal operand condition. When the DAZ flag is set, the processor converts all denormal source operands to zero with the sign of the original operand before performing any computations on source data. Use this function to improve processor performance of applications such as streaming media processing, where rounding a denormal operand to zero does not noticeably affect the quality of the processed data.

Return Values

ippStsNoErr

Indicates no error.

ippStsCpuNotSupportedErr

Indicates an error condition when the DAZ mode is not supported by the processor.