Skip to content

Commit 7e41072

Browse files
Update bruun_kernel.hpp
1 parent ad090cd commit 7e41072

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/detail/bruun_kernel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static inline void bruun_table256_poly3_sincos(double phase, double* s_out, doub
578578
constexpr double inv_step = static_cast<double>(table_size) / bruun_tau;
579579
constexpr double step = bruun_tau / static_cast<double>(table_size);
580580

581-
if (phase < 0.0 || phase >= bruun_tau) {
581+
if (!(phase >= 0.0 && phase < bruun_tau)) {
582582
*s_out = std::sin(phase);
583583
*c_out = std::cos(phase);
584584
return;

0 commit comments

Comments
 (0)