aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-04-13 19:15:46 -0700
committerHaibo Huang <hhb@google.com>2020-04-15 23:36:02 +0000
commit2ea5ac4e63f6f5c84d75b8da4ec3d8ad332bc26b (patch)
tree75b1a3f2d3002054fc91894f165e96ba01262f22
parentee7e379b1de12de575933d29b382401989c50f2f (diff)
parent3c54eacb74f6f5e39077300c5564156c424d77ba (diff)
downloadFP16-2ea5ac4e63f6f5c84d75b8da4ec3d8ad332bc26b.tar.gz
Upgrade FP16 to 3c54eacb74f6f5e39077300c5564156c424d77ba
Exempt-From-Owner-Approval: upgrade Change-Id: Id5e6e5fdb277a994a3ec4b22d61214371d8373a0
-rw-r--r--METADATA13
-rw-r--r--include/fp16/fp16.h2
2 files changed, 8 insertions, 7 deletions
diff --git a/METADATA b/METADATA
index dd36746..5d4ed15 100644
--- a/METADATA
+++ b/METADATA
@@ -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);
/*