c# - Fast integer ABS function - Stack Overflow
Fast integer ABS function up vote 5 down vote favorite int X = a-b; int d = Math.Abs(X); I am pretty sure that .NET doesn't do inlining. So, will I do if(), or is there some other less-known trick? c#.net optimization share | improve this question edited ...