This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| public class Node { | |
| Node n1, n2, n3, n4; | |
| public void connect (Node _n1, Node _n2, Node _n3, Node _n4) { | |
| n1 = _n1; | |
| n2 = _n2; | |
| n3 = _n3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| public class Node { | |
| Node n1, n2, n3, n4; | |
| #if EDGE8 | |
| Node n5, n6, n7, n8; | |
| #endif | |
| public void connect (Node _n1, Node _n2, Node _n3, Node _n4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| public class Sort { | |
| static void maxSort (int[] arr) { | |
| int len = arr.Length; | |
| for (int i = 1; i < len; ++i) { | |
| for (int j = i; j > 0; --j) { | |
| if (arr [j-1] > arr [j]) { | |
| /* swap */ | |
| int tmp = arr [j-1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| public class Sort { | |
| static void maxSort (int[] arr) { | |
| int len = arr.Length; | |
| for (int i = 1; i < len; ++i) { | |
| for (int j = i; j > 0; --j) { | |
| if (arr [j-1] > arr [j]) { | |
| /* swap */ | |
| int tmp = arr [j-1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading; | |
| using System.Collections.Generic; | |
| public class Node { | |
| Node n1, n2, n3, n4; | |
| #if EDGE8 | |
| Node n5, n6, n7, n8; | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading; | |
| using System.Collections.Generic; | |
| public class Node { | |
| Node n1, n2, n3, n4; | |
| #if EDGE8 | |
| Node n5, n6, n7, n8; | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/mono/mini/mini-ppc.c b/mono/mini/mini-ppc.c | |
| index 5992b00..aeeb413 100755 | |
| --- a/mono/mini/mini-ppc.c | |
| +++ b/mono/mini/mini-ppc.c | |
| @@ -971,7 +971,7 @@ has_only_a_r48_field (MonoClass *klass) | |
| #endif | |
| static CallInfo* | |
| -calculate_sizes (MonoMethodSignature *sig, gboolean is_pinvoke) | |
| +calculate_sizes (MonoGenericSharingContext *gsctx, MonoMethodSignature *sig, gboolean is_pinvoke) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Test | |
| { | |
| static T Run<T>(System.Func<T> f) { return f(); } | |
| public static void Main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/mono/mini/cpu-x86.md b/mono/mini/cpu-x86.md | |
| index f689505..ebb5495 100644 | |
| --- a/mono/mini/cpu-x86.md | |
| +++ b/mono/mini/cpu-x86.md | |
| @@ -300,7 +300,7 @@ tls_get: dest:i len:20 | |
| atomic_add_i4: src1:b src2:i dest:i len:16 | |
| atomic_add_new_i4: src1:b src2:i dest:i len:16 | |
| atomic_exchange_i4: src1:b src2:i dest:a len:24 | |
| -atomic_cas_i4: src1:b src2:i src3:a dest:i len:24 | |
| +atomic_cas_i4: src1:a src2:b src3:i dest:a len:24 clob:1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using NUnit.Framework; | |
| using System.Threading; | |
| using System; | |
| public class Test { | |
| public static void CompareExchange_Generic () | |
| { | |
| object a = null; | |
| Assert.IsNull (Interlocked.CompareExchange<object> (ref a, a, a), "null,null,null"); | |
| /* |