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:
kma@webrtc.org 2012-09-28 17:14:08 +00:00
parent c7ecc11571
commit 507146c56c
3 changed files with 10 additions and 10 deletions

View File

@ -27,14 +27,6 @@ FILE *dfile;
FILE *testfile; FILE *testfile;
#endif #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 #ifdef AECM_SHORT
// Square root of Hanning window in Q14 // Square root of Hanning window in Q14

View File

@ -18,7 +18,15 @@
#include "aecm_defines.h" #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 { typedef struct {
WebRtc_Word16 real; WebRtc_Word16 real;

View File

@ -19,7 +19,7 @@
// generating script and makefile, to replace these C functions. // generating script and makefile, to replace these C functions.
// Square root of Hanning window in Q14. // 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, 16384, 16373, 16354, 16325,
16286, 16237, 16179, 16111, 16286, 16237, 16179, 16111,
16034, 15947, 15851, 15746, 16034, 15947, 15851, 15746,