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.39 Optimized Memory Copy
Description:
Header File:
FPU.h
Declaration:
This module performs optimized memory copies.
void memcpy_fast(void
*
dst, const void
*
src, Uint16 N)
Usage:
memcpy_fast(dst, src, N);
void* dst
pointer to destination
const void* src
pointer to source
Uint16 N
number of 16-bit words to copy
Alignment Requirements:
None
Notes:
1. The function checks for the case of N=0 and just returns if true.
Example:
#include "FPU.h"
#define N 256
float32 y[N];
float32 x[N];
main()
{
memcpy_fast(x, y, N<<1);
}
Benchmark Information:
Number of Cycles = 1 cycle per copy + 20 cycles of overhead (including the call and return).
This assumes src and dst are located in different internal RAM blocks.
Sep 10, 2012 73

Table of Contents

Other manuals for Texas Instruments C28 Series

Related product manuals