dsp_neg32.h
来自「dm642函数库」· C头文件 代码 · 共 112 行
H
112 行
/* ======================================================================== */
/* TEXAS INSTRUMENTS, INC. */
/* */
/* DSPLIB DSP Signal Processing Library */
/* */
/* Release: Revision 1.04b */
/* CVS Revision: 1.6 Sun Sep 29 03:32:27 2002 (UTC) */
/* Snapshot date: 23-Oct-2003 */
/* */
/* This library contains proprietary intellectual property of Texas */
/* Instruments, Inc. The library and its source code are protected by */
/* various copyrights, and portions may also be protected by patents or */
/* other legal protections. */
/* */
/* This software is licensed for use with Texas Instruments TMS320 */
/* family DSPs. This license was provided to you prior to installing */
/* the software. You may review this license by consulting the file */
/* TI_license.PDF which accompanies the files in this library. */
/* ------------------------------------------------------------------------ */
/* Copyright (C) 2003 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
/* ======================================================================== */
/* Assembler compatibility shim for assembling 4.30 and later code on */
/* tools prior to 4.30. */
/* ======================================================================== */
/* ======================================================================== */
/* End of assembler compatibility shim. */
/* ======================================================================== */
/* ======================================================================== */
/* TEXAS INSTRUMENTS, INC. */
/* */
/* NAME */
/* DSP_neg32 */
/* */
/* REVISION DATE */
/* 10-Dec-2001 */
/* */
/* USAGE */
/* This routine is C callable, and may be called using the following */
/* C function prototype: */
/* */
/* void DSP_neg32 */
/* ( */
/* int *x, // Input data array // */
/* int *r, // Output data array // */
/* short nx // Number of elements. // */
/* ); */
/* */
/* DESCRIPTION */
/* This routine negates an array of 32-bit integers, and stores */
/* the result either in a new array, or back to the same array. */
/* */
/* void DSP_neg32 */
/* ( */
/* int *x, // Input data array // */
/* int *r, // Output data array // */
/* short nx // Number of elements. // */
/* ) */
/* { */
/* int i; */
/* */
/* for (i = 0; i < nx; i++) */
/* r[i] = -x[i]; */
/* } */
/* */
/* ASSUMPTIONS */
/* The input must be at least 8 elements long, and a multiple of 4. */
/* */
/* The input and output arrays must not overlap, except in the */
/* special case where the input and output pointers are exactly */
/* equal. */
/* */
/* The x and r arrays must be double-word aligned */
/* */
/* MEMORY NOTE */
/* No memory bank hits will occur. */
/* This kernel is ENDIAN NEUTRAL. */
/* */
/* NOTES */
/* Code is interrupt tolerant but not interruptible. It locks out */
/* interrupts for its entire duration. */
/* */
/* CYCLES */
/* cycles = nx/2 + 19. */
/* nx = 96, cycles = 56 cycles */
/* */
/* CODESIZE */
/* 124 bytes */
/* */
/* ------------------------------------------------------------------------ */
/* Copyright (c) 2003 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
#ifndef DSP_NEG32_H_
#define DSP_NEG32_H_ 1
void DSP_neg32
(
int *x, /* Input data array */
int *r, /* Output data array */
short nx /* Number of elements. */
);
#endif
/* ======================================================================== */
/* End of file: dsp_neg32.h */
/* ------------------------------------------------------------------------ */
/* Copyright (c) 2003 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?