Commit f07a74d1 authored by Rostyslav Geyyer's avatar Rostyslav Geyyer
Browse files

Format

parent 21481b44
...@@ -1094,8 +1094,7 @@ inline __host__ __device__ f8_t type_convert<f8_t, float>(float x) ...@@ -1094,8 +1094,7 @@ inline __host__ __device__ f8_t type_convert<f8_t, float>(float x)
uint32_t drop_mask = (1 << (mfmt - wm)) - 1; uint32_t drop_mask = (1 << (mfmt - wm)) - 1;
const int max_exp = (1 << we) - (negative_zero_nan ? 1 : 2); const int max_exp = (1 << we) - (negative_zero_nan ? 1 : 2);
const int exp_low_cutoff = const int exp_low_cutoff = 128 - (1 << (we - 1)) + 1 - (negative_zero_nan ? 1 : 0);
128 - (1 << (we - 1)) + 1 - (negative_zero_nan ? 1 : 0);
exponent -= exp_low_cutoff - 1; exponent -= exp_low_cutoff - 1;
if(exponent <= 0) if(exponent <= 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment