Changed alignment code in AECM, to work with an issue in GCC 4.6 in Android.
Review URL: https://webrtc-codereview.appspot.com/841009 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2848 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
c7ecc11571
commit
507146c56c
@ -27,14 +27,6 @@ FILE *dfile;
|
||||
FILE *testfile;
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER // visual c++
|
||||
#define ALIGN8_BEG __declspec(align(8))
|
||||
#define ALIGN8_END
|
||||
#else // gcc or icc
|
||||
#define ALIGN8_BEG
|
||||
#define ALIGN8_END __attribute__((aligned(8)))
|
||||
#endif
|
||||
|
||||
#ifdef AECM_SHORT
|
||||
|
||||
// Square root of Hanning window in Q14
|
||||
|
@ -18,7 +18,15 @@
|
||||
|
||||
#include "aecm_defines.h"
|
||||
|
||||
extern const WebRtc_Word16 WebRtcAecm_kSqrtHanning[];
|
||||
#ifdef _MSC_VER // visual c++
|
||||
#define ALIGN8_BEG __declspec(align(8))
|
||||
#define ALIGN8_END
|
||||
#else // gcc or icc
|
||||
#define ALIGN8_BEG
|
||||
#define ALIGN8_END __attribute__((aligned(8)))
|
||||
#endif
|
||||
|
||||
extern const WebRtc_Word16 WebRtcAecm_kSqrtHanning[] ALIGN8_END;
|
||||
|
||||
typedef struct {
|
||||
WebRtc_Word16 real;
|
||||
|
@ -19,7 +19,7 @@
|
||||
// generating script and makefile, to replace these C functions.
|
||||
|
||||
// Square root of Hanning window in Q14.
|
||||
static const WebRtc_Word16 kSqrtHanningReversed[] __attribute__((aligned(8))) = {
|
||||
static const WebRtc_Word16 kSqrtHanningReversed[] ALIGN8_END = {
|
||||
16384, 16373, 16354, 16325,
|
||||
16286, 16237, 16179, 16111,
|
||||
16034, 15947, 15851, 15746,
|
||||
|
Loading…
Reference in New Issue
Block a user