Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix boundary case in log2_extended_precision_half_safe.
log2_extended_precision_half_safe is a modified version of log2_extended_precision_half_unsafe that avoids denormal intermediate results via scaling. The unsafe version gives one input, 0x39f6, special treatment because the approximation is known to be incorrect, but the safe version did not translate this special treatment correctly: the special casing happens before downscaling, therefore the constant needs to be upscaled. This fixes a pow test failure on FTZ targets.
- Loading branch information