EasyManuals Logo

Texas Instruments C28 Series User Manual

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
Page #69 background imageLoading...
Page #69 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C28 Series and is the answer not in the manual?

Texas Instruments C28 Series Specifications

General IconGeneral
BrandTexas Instruments
ModelC28 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals