We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434234c commit ffeb633Copy full SHA for ffeb633
include/nbl/builtin/hlsl/math/angle_adding.hlsl
@@ -44,7 +44,7 @@ struct sincos_accumulator
44
const T cosB = runningSum.real();
45
const T sinB = runningSum.imag();
46
// 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);
+ const bool overflow = abs<T>(min<T>(cosA, cosB)) > max<T>(cosA, cosB);
48
const T c = cosA * cosB - sinA * sinB;
49
const T d = sinA * cosB + cosA * sinB;
50
0 commit comments