diff options
author | Colin Cross <ccross@android.com> | 2017-06-30 14:05:23 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-07-01 03:34:02 +0000 |
commit | 43a02cf87d1b3ed5fc587d4fd020af0650ca36dd (patch) | |
tree | 0aebcfd48ce93447ba4376b4aeb0f0dcaa5edc4e | |
parent | 7180e89fd297601e45660457c1ed2d358eb20626 (diff) | |
download | media-43a02cf87d1b3ed5fc587d4fd020af0650ca36dd.tar.gz |
Make inlines static
Compiling the non-static inlines with -Oz results in missing symbols,
because clang chooses not to inline the functions but also doesn't
emit a definition because they are not static or extern. They are
only used in this .c file, so make them static.
Test: builds with -Oz
Bug: 62549703
Change-Id: Ibb78ad982c2911e151f0dd6b01eb6164fe6e8e63
Merged-In: Ibb78ad982c2911e151f0dd6b01eb6164fe6e8e63
-rw-r--r-- | audio_utils/channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio_utils/channels.c b/audio_utils/channels.c index 538debad..91d18fd3 100644 --- a/audio_utils/channels.c +++ b/audio_utils/channels.c @@ -32,7 +32,7 @@ static inline int32_t clamp24(int32_t sample) /* * Converts a uint8x3_t into an int32_t */ -inline int32_t uint8x3_to_int32(uint8x3_t val) { +static inline int32_t uint8x3_to_int32(uint8x3_t val) { #if HAVE_BIG_ENDIAN int32_t temp = (val.c[0] << 24 | val.c[1] << 16 | val.c[2] << 8) >> 8; #else @@ -44,7 +44,7 @@ inline int32_t uint8x3_to_int32(uint8x3_t val) { /* * Converts an int32_t to a uint8x3_t */ -inline uint8x3_t int32_to_uint8x3(int32_t in) { +static inline uint8x3_t int32_to_uint8x3(int32_t in) { uint8x3_t out; #if HAVE_BIG_ENDIAN out.c[2] = in; |