Skip to content

Commit ffeb633

Browse files
committed
fix angle adder
1 parent 434234c commit ffeb633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/math/angle_adding.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct sincos_accumulator
4444
const T cosB = runningSum.real();
4545
const T sinB = runningSum.imag();
4646
// TODO: prove if we infer overflow from sign of `d` instead
47-
const bool overflow = abs<T>(min<T>(a, cosB)) > max<T>(a, cosB);
47+
const bool overflow = abs<T>(min<T>(cosA, cosB)) > max<T>(cosA, cosB);
4848
const T c = cosA * cosB - sinA * sinB;
4949
const T d = sinA * cosB + cosA * sinB;
5050

0 commit comments

Comments
 (0)