Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix half to float giving wrong results on older x86_64 CPUs on Windows (
#358) The lzcnt instruction is not supported on some older x86_64 CPUs. On these CPUs it will silently execute a bsr instruction instead, leading to wrong results. Instead use the bsr instruction and one additional subtraction, which should have a negligible impact on performance. Additionally, this likely improves performance on ARM. Thanks to Ray Molenkamp for tracking down this bug. Signed-off-by: Brecht Van Lommel <brecht@blender.org>
- Loading branch information