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
/*
* 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
/*
* 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;