dspf_fltoq15.h
来自「详细的OFDM设计过程」· C头文件 代码 · 共 44 行
H
44 行
/* ======================================================================== */
/* TEXAS INSTRUMENTS, INC. */
/* */
/* NAME */
/* DSPF_fltoq15 -- IEEE Single Precision floating point to Q15 format */
/* */
/* USAGE */
/* This routine is C-callable and can be called as: */
/* */
/* void DSPF_fltoq15 */
/* ( */
/* const float* restrict x, */
/* short* restrict r, */
/* int nx */
/* ); */
/* */
/* x[nx] : Input array contaning values of type float */
/* r[nx] : Output array contains Q15 equivalents of x[nx] */
/* nx : Number of elements in both arrays */
/* */
/* DESCRIPTION */
/* Convert the IEEE floating point numbers stored in vector x[] into */
/* Q.15 format numbers stored in vector r[]. Results will be rounded */
/* towards negative infinity. All values that exceed the size limit */
/* will be saturated to 0x7fff if value is positive and 0x8000 if */
/* value is negative. */
/* */
/* ------------------------------------------------------------------------ */
/* Copyright (c) 2003 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
#ifndef DSPF_FLTOQ15_
#define DSPF_FLTOQ15_ 1
void DSPF_fltoq15(const float * x, short * restrict r, int nx);
#endif
/* ======================================================================== */
/* End of file: dspf_fltoq15.h */
/* ------------------------------------------------------------------------ */
/* Copyright (C) 2003 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?