dsp/trig: let compiler infer type parameter in atan2 abs call

This commit is contained in:
Matt Huszagh 2020-12-17 08:04:53 -08:00
parent d9d500743f
commit d7111a3aa8

View File

@ -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: