Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public

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

Document Table of Contents

Rounding Mode

General signal processing functions use rounding. The default rounding mode is nearest even, that is the fixed point number x=N + α, 0 ≤ α < 1, where N is an integer number, is rounded as given by:



For example, 1.5 will be rounded to 2 and 2.5 to 2.

Some functions have additional rounding modes, which are set by the parameter roundMode.

IMPORTANT:

  • Functions for data compression, data integrity, string processing and fixed-accuracy arithmetic do not perform rounding.