diff options
author | Haibo Huang <hhb@google.com> | 2020-04-15 23:47:26 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-15 23:47:26 +0000 |
commit | 3c4a5dcf6a2d8275ae727402c1c0b812582df10f (patch) | |
tree | 75b1a3f2d3002054fc91894f165e96ba01262f22 | |
parent | 6cc7c334c3c42240b29a15ed562802e5065238a5 (diff) | |
parent | 2ea5ac4e63f6f5c84d75b8da4ec3d8ad332bc26b (diff) | |
download | FP16-3c4a5dcf6a2d8275ae727402c1c0b812582df10f.tar.gz |
Upgrade FP16 to 3c54eacb74f6f5e39077300c5564156c424d77ba am: 2ea5ac4e63
Change-Id: Id81b90433ed15393cf8c974d7a67b1c6e03edb5a
-rw-r--r-- | METADATA | 13 | ||||
-rw-r--r-- | include/fp16/fp16.h | 2 |
2 files changed, 8 insertions, 7 deletions
@@ -1,8 +1,5 @@ name: "FP16" -description: - "Header-only library for conversion to/from half-precision floating point " - "formats" - +description: "Header-only library for conversion to/from half-precision floating point formats" third_party { url { type: HOMEPAGE @@ -12,7 +9,11 @@ third_party { type: GIT value: "https://github.com/Maratyszcza/FP16" } - version: "ba1d31f5eed2eb4a69e4dea3870a68c7c95f998f" - last_upgrade_date { year: 2020 month: 2 day: 3 } + version: "3c54eacb74f6f5e39077300c5564156c424d77ba" license_type: NOTICE + last_upgrade_date { + year: 2020 + month: 4 + day: 13 + } } diff --git a/include/fp16/fp16.h b/include/fp16/fp16.h index 43a893a..2b61fff 100644 --- a/include/fp16/fp16.h +++ b/include/fp16/fp16.h @@ -373,7 +373,7 @@ static inline float fp16_alt_to_fp32_value(uint16_t h) { * Note that this operation does not handle denormal inputs (where biased exponent == 0). However, they also do not * operate on denormal inputs, and do not produce denormal results. */ - const float exp_offset = UINT32_C(0x70) << 23; + const uint32_t exp_offset = UINT32_C(0x70) << 23; const float normalized_value = fp32_from_bits((two_w >> 4) + exp_offset); /* |