File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
nanoFramework.CoreLibrary/System Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 13
13
[ assembly: AssemblyProduct ( ".NET nanoFramework mscorlib" ) ]
14
14
[ assembly: AssemblyCopyright ( "Copyright (c) .NET Foundation and Contributors" ) ]
15
15
16
- [ assembly: AssemblyNativeVersion ( "100.5.0.18 " ) ]
16
+ [ assembly: AssemblyNativeVersion ( "100.5.0.19 " ) ]
Original file line number Diff line number Diff line change @@ -13,10 +13,26 @@ internal static class MathInternal
13
13
[ MethodImpl ( MethodImplOptions . InternalCall ) ]
14
14
internal static extern int Abs ( int val ) ;
15
15
16
- [ MethodImpl ( MethodImplOptions . InternalCall ) ]
17
- internal static extern int Min ( int val1 , int val2 ) ;
16
+ /// <summary>
17
+ /// Returns the larger of two 32-bit signed integers.
18
+ /// </summary>
19
+ /// <param name="val1">The first of two 32-bit signed integers to compare. </param>
20
+ /// <param name="val2">The second of two 32-bit signed integers to compare. </param>
21
+ /// <returns>Parameter <paramref name="val1"/> or <paramref name="val2"/>, whichever is larger.</returns>
22
+ internal static int Max ( int val1 , int val2 )
23
+ {
24
+ return ( val1 >= val2 ) ? val1 : val2 ;
25
+ }
18
26
19
- [ MethodImpl ( MethodImplOptions . InternalCall ) ]
20
- internal static extern int Max ( int val1 , int val2 ) ;
27
+ /// <summary>
28
+ /// Returns the smaller of two 32-bit signed integers.
29
+ /// </summary>
30
+ /// <param name="val1">The first of two 32-bit signed integers to compare. </param>
31
+ /// <param name="val2">The second of two 32-bit signed integers to compare. </param>
32
+ /// <returns>Parameter <paramref name="val1"/> or <paramref name="val2"/>, whichever is smaller.</returns>
33
+ internal static int Min ( int val1 , int val2 )
34
+ {
35
+ return ( val2 >= val1 ) ? val1 : val2 ;
36
+ }
21
37
}
22
38
}
You can’t perform that action at this time.
0 commit comments