mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
fix(fft): restore previous PI approximation
This commit is contained in:
@@ -276,7 +276,9 @@ pub fn sincospi64(mut a: f64) -> (f64, f64) {
|
|||||||
let s = s * t;
|
let s = s * t;
|
||||||
r *= s;
|
r *= s;
|
||||||
|
|
||||||
let mut s = fma(t, f64::consts::PI, r);
|
// Noise analysis has been done based on this precise value
|
||||||
|
#[allow(clippy::approx_constant)]
|
||||||
|
let mut s = fma(t, 3.1415926535897931e+0, r);
|
||||||
// map results according to quadrant
|
// map results according to quadrant
|
||||||
|
|
||||||
if (i & 2) != 0 {
|
if (i & 2) != 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user