You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the compile doesn't optimize calls to math.Abs() or cmplx.Abs() to strip out unnecessary calls to those functions when multiplying them or dividing them. According to the absolute value rules, |A * B| = |A| * |B| and |A / B| = |A| / |B|, meaning that the compiler should be able to work the right two calls to either math.Abs() or cmplx.Abs() into a single call by moving the multiplication or division inside the call instead.
This means that the first block of assembly can be simplified to the one after.