Skip to content

Commit

Permalink
Update comment on fast_multiply_add
Browse files Browse the repository at this point in the history
  • Loading branch information
madmann91 committed Aug 11, 2024
1 parent ce037a7 commit 66e445b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bvh/v2/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ BVH_ALWAYS_INLINE T safe_inverse(T x) {
: static_cast<T>(1.) / x;
}

/// Fast multiply-add operation. Should translate into an FMA for architectures that support it.
/// Fast multiply-add operation. Should translate into an FMA for architectures that support it. On
/// architectures which do not support FMA in hardware, or on which FMA is slow, this defaults to a
/// regular multiplication followed by an addition.
#if defined(_MSC_VER) && !defined(__clang__)
#pragma float_control(push)
#pragma float_control(precise, off)
Expand Down

0 comments on commit 66e445b

Please sign in to comment.