Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dsp by
Diff: cmsis_dsp/FastMathFunctions/arm_sin_q15.c
- Revision:
- 2:da51fb522205
- Parent:
- 1:fdd22bb7aa52
- Child:
- 3:7a284390b0ce
--- a/cmsis_dsp/FastMathFunctions/arm_sin_q15.c Wed Nov 28 12:30:09 2012 +0000 +++ b/cmsis_dsp/FastMathFunctions/arm_sin_q15.c Thu May 30 17:10:11 2013 +0100 @@ -2,12 +2,12 @@ * Copyright (C) 2010 ARM Limited. All rights reserved. * * $Date: 15. February 2012 -* $Revision: V1.1.0 +* $Revision: V1.1.0 * -* Project: CMSIS DSP Library -* Title: arm_sin_q15.c +* Project: CMSIS DSP Library +* Title: arm_sin_q15.c * -* Description: Fast sine calculation for Q15 values. +* Description: Fast sine calculation for Q15 values. * * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0 * @@ -49,15 +49,15 @@ * <pre>tableSize = 256; * for(n = -1; n < (tableSize + 1); n++) * { - * sinTable[n+1]=sin(2*pi*n/tableSize); + * sinTable[n+1]=sin(2*pi*n/tableSize); * } </pre> * where pi value is 3.14159265358979 * \par * Convert Floating point to Q15(Fixed point): - * (sinTable[i] * pow(2, 15)) + * (sinTable[i] * pow(2, 15)) * \par * rounding to nearest integer is done - * sinTable[i] += (sinTable[i] > 0 ? 0.5 :-0.5); + * sinTable[i] += (sinTable[i] > 0 ? 0.5 :-0.5); */