diff options
author | Haibo Huang <hhb@google.com> | 2020-04-16 00:52:56 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-16 00:52:56 +0000 |
commit | 8a321842eac42c78d9e8681da816da3ab6815eda (patch) | |
tree | 75b1a3f2d3002054fc91894f165e96ba01262f22 | |
parent | d18dde899b5290b4e1698eaeb5c97a45db94f208 (diff) | |
parent | 40b15c5d81c199aa498dcb9c79529372e5065165 (diff) | |
download | FP16-8a321842eac42c78d9e8681da816da3ab6815eda.tar.gz |
Upgrade FP16 to 3c54eacb74f6f5e39077300c5564156c424d77ba am: 2ea5ac4e63 am: 3c4a5dcf6a am: b509c3d3e1 am: 572f521c8a am: 40b15c5d81
Change-Id: I4c4c8b4d26fbe4f35ab17860208c0e4d97e7dedb
-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); /* |