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 #56 background imageLoading...
Page #56 background image
Function Descriptions
3.23 Index of Maximum Value of an Even Length Real Array
Description:
This module finds the index of the maximum value of an even length real array.
Header File:
FPU.h
Declaration:
Uint16 maxidx_SP_RV_2(float32
*
x, Uint16 N)
Usage:
index = maxidx_SP_RV_2(x, N);
float32 x
input array
Uint16 N
length of x
Uint16 index
index of maximum value in x
NOTE:
1. N must be even.
2. If more than one instance of the max value exists in x[], the function will return the
index of the first occurence (lowest index value)
Alignment Requirements:
None
Example:
#include "FPU.h"
#define N 10
float32 x[N];
Uint16 index;
main()
{
index = maxidx_SP_RV_2(x, N);
}
Benchmark Information:
Number of Cycles = 3*N + 21 cycles (including the call and return)
Sep 10, 2012 56

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