Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Sign()

static int System.Linq.Parallel.Util.Sign ( int x)
inlinestaticpackage

Definition at line 57 of file Util.cs.

58 {
59 if (x >= 0)
60 {
61 if (x != 0)
62 {
63 return 1;
64 }
65 return 0;
66 }
67 return -1;
68 }

Referenced by System.Linq.AggregationMinMaxHelpers< T >.MakeFinalReduceFunction(), and System.Linq.AggregationMinMaxHelpers< T >.MakeIntermediateReduceFunction().