EasyManua.ls Logo

Texas Instruments C28 Series

Texas Instruments C28 Series
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function Descriptions
3.35 Rounding (Unbiased) of a Floating Point Scalar
Description:
This module performs the unbiased rounding of a floating point scalar.
Header File:
FPU.h
Declaration:
float32 rnd_SP_RS(float32 x)
Usage:
y = rnd_SP_RS(x);
float32 x
input value
float32 y
result
Alignment Requirements:
None
Notes:
1. numerical examples:
rnd_SP_RS(+4.4) = +4.0
rnd_SP_RS(-4.4) = -4.0
rnd_SP_RS(+4.5) = +5.0
rnd_SP_RS(-4.5) = -5.0
rnd_SP_RS(+4.6) = +5.0
rnd_SP_RS(-4.6) = -5.0
Example:
#include "FPU.h"
float32 x,y;
main()
{
y = rnd_SP_RS(x);
}
Benchmark Information:
Number of Cycles = 18 cycles (including the call and return)
Sep 10, 2012 69

Table of Contents

Other manuals for Texas Instruments C28 Series

Related product manuals