зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1236937 - Use correct value for Pi in AAFilter.cpp. r=padenot
--HG-- extra : commitid : 4VN9ybE7dd3
This commit is contained in:
Родитель
0f1d4e6541
Коммит
8849dc24b6
|
@ -117,4 +117,25 @@ diff -u /src/TDStretch.cpp /src/TDStretch.cpp
|
||||||
|
|
||||||
// Check if MMX/SSE instruction set extensions supported by CPU
|
// Check if MMX/SSE instruction set extensions supported by CPU
|
||||||
|
|
||||||
diff -u /src/SoundTouch.cpp /src/SoundTouch.cpp
|
diff --git a/media/libsoundtouch/src/AAFilter.cpp b/media/libsoundtouch/src/AAFilter.cpp
|
||||||
|
--- a/media/libsoundtouch/src/AAFilter.cpp
|
||||||
|
+++ b/media/libsoundtouch/src/AAFilter.cpp
|
||||||
|
@@ -44,17 +44,17 @@
|
||||||
|
#include <assert.h>
|
||||||
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "AAFilter.h"
|
||||||
|
#include "FIRFilter.h"
|
||||||
|
|
||||||
|
using namespace soundtouch;
|
||||||
|
|
||||||
|
-#define PI 3.141592655357989
|
||||||
|
+#define PI M_PI
|
||||||
|
#define TWOPI (2 * PI)
|
||||||
|
|
||||||
|
// define this to save AA filter coefficients to a file
|
||||||
|
// #define _DEBUG_SAVE_AAFILTER_COEFFICIENTS 1
|
||||||
|
|
||||||
|
#ifdef _DEBUG_SAVE_AAFILTER_COEFFICIENTS
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
using namespace soundtouch;
|
using namespace soundtouch;
|
||||||
|
|
||||||
#define PI 3.141592655357989
|
#define PI M_PI
|
||||||
#define TWOPI (2 * PI)
|
#define TWOPI (2 * PI)
|
||||||
|
|
||||||
// define this to save AA filter coefficients to a file
|
// define this to save AA filter coefficients to a file
|
||||||
|
|
Загрузка…
Ссылка в новой задаче