dsp/trig: let compiler infer type parameter in atan2 abs call
This commit is contained in:
parent
d9d500743f
commit
d7111a3aa8
|
@ -25,8 +25,8 @@ pub fn atan2(y: i32, x: i32) -> i32 {
|
|||
let y = y >> 16;
|
||||
let x = x >> 16;
|
||||
|
||||
let ux = abs::<i32>(x);
|
||||
let uy = abs::<i32>(y);
|
||||
let ux = abs(x);
|
||||
let uy = abs(y);
|
||||
|
||||
// Uses the general procedure described in the following
|
||||
// Mathematics stack exchange answer:
|
||||
|
|
Loading…
Reference in New Issue