aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-04-30 23:05:41 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-04-30 23:05:41 +0000
commit079a466efdbe56053e8f45bfe0d9f89455767388 (patch)
tree2cdd5077549a89cc784aa1f929fb59cb37e7bb9b
parent579863e5f2a9c27fc66bdb76d252290687638cbf (diff)
parentba4721cc8d41ea8e7bae3a2bf4eb8b0d1e003c92 (diff)
downloadliblc3-sdk-release.tar.gz
Snap for 11785460 from ba4721cc8d41ea8e7bae3a2bf4eb8b0d1e003c92 to sdk-releasesdk-releasebusytown-mac-infra-release
Change-Id: Ic0a30733ff3ad2f98335f528dd682218500c49e0
-rw-r--r--METADATA2
-rw-r--r--src/fastmath.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/METADATA b/METADATA
index a920a23..ab29650 100644
--- a/METADATA
+++ b/METADATA
@@ -12,6 +12,6 @@ third_party {
value: "https://github.com/google/liblc3"
}
version: "v1.1.1"
- last_upgrade_date { year: 2024 month: 4 day: 19 }
+ last_upgrade_date { year: 2024 month: 4 day: 26 }
license_type: NOTICE
}
diff --git a/src/fastmath.h b/src/fastmath.h
index 221d69f..c61ae64 100644
--- a/src/fastmath.h
+++ b/src/fastmath.h
@@ -42,10 +42,10 @@
* return 2^exp
*/
static inline float lc3_ldexpf(float _x, int exp) {
- union { float f; uint32_t u; } x = { .f = _x };
+ union { float f; int32_t s; } x = { .f = _x };
- if (x.u & LC3_IEEE754_EXP_MASK)
- x.u += exp << LC3_IEEE754_EXP_SHL;
+ if (x.s & LC3_IEEE754_EXP_MASK)
+ x.s += exp << LC3_IEEE754_EXP_SHL;
return x.f;
}