diff options
-rw-r--r-- | src/mscorlib/src/System/String.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/String.cs b/src/mscorlib/src/System/String.cs index 9255c9bb22..067f88a605 100644 --- a/src/mscorlib/src/System/String.cs +++ b/src/mscorlib/src/System/String.cs @@ -1703,6 +1703,8 @@ namespace System { Contract.Assert(end[0] == 0 || end[1] == 0); if (end[0] != 0) end++; #else // !BIT64 + // Based on https://graphics.stanford.edu/~seander/bithacks.html#ZeroInWord + // 64-bit implementation: process 1 ulong (word) at a time // What we do here is add 0x7fff from each of the |