WEBRTC_{BIG, LITTLE}_ENDIAN -> WEBRTC_ARCH_{BIG, LITTLE}_ENDIAN.
Mostly to remove a long-standing TODO... TESTED=trybots R=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2369005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5013 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
|
||||
#include "typedefs.h"
|
||||
|
||||
#ifdef WEBRTC_BIG_ENDIAN
|
||||
#ifdef WEBRTC_ARCH_BIG_ENDIAN
|
||||
#include "signal_processing_library.h"
|
||||
#endif
|
||||
|
||||
@ -29,7 +29,7 @@ int16_t WebRtcPcm16b_EncodeW16(int16_t *speechIn16b,
|
||||
int16_t len,
|
||||
int16_t *speechOut16b)
|
||||
{
|
||||
#ifdef WEBRTC_BIG_ENDIAN
|
||||
#ifdef WEBRTC_ARCH_BIG_ENDIAN
|
||||
WEBRTC_SPL_MEMCPY_W16(speechOut16b, speechIn16b, len);
|
||||
#else
|
||||
int i;
|
||||
@ -68,7 +68,7 @@ int16_t WebRtcPcm16b_DecodeW16(void *inst,
|
||||
int16_t *speechOut16b,
|
||||
int16_t* speechType)
|
||||
{
|
||||
#ifdef WEBRTC_BIG_ENDIAN
|
||||
#ifdef WEBRTC_ARCH_BIG_ENDIAN
|
||||
WEBRTC_SPL_MEMCPY_W8(speechOut16b, speechIn16b, ((len*sizeof(int16_t)+1)>>1));
|
||||
#else
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user