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.
Diff: cmsis_dsp/FastMathFunctions/arm_sin_q31.c
- Revision:
- 2:da51fb522205
- Parent:
- 1:fdd22bb7aa52
- Child:
- 3:7a284390b0ce
--- a/cmsis_dsp/FastMathFunctions/arm_sin_q31.c Wed Nov 28 12:30:09 2012 +0000
+++ b/cmsis_dsp/FastMathFunctions/arm_sin_q31.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_q31.c
+* Project: CMSIS DSP Library
+* Title: arm_sin_q31.c
*
-* Description: Fast sine calculation for Q31 values.
+* Description: Fast sine calculation for Q31 values.
*
* Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
*
@@ -48,15 +48,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 Q31(Fixed point):
- * (sinTable[i] * pow(2, 31))
+ * (sinTable[i] * pow(2, 31))
* \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);
*/
static const q31_t sinTableQ31[259] = {