This file contains 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
// Copyright (c) Six Labors and contributors. | |
// See LICENSE for more details. | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
#if NETCOREAPP3_1 | |
using System.Runtime.Intrinsics; | |
using System.Runtime.Intrinsics.X86; | |
#endif |
This file contains 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
/// <summary> | |
/// Using SSE4.1, calculates the costs for the virtual matrix. | |
/// This performs a 4x outer loop unrolling allowing fewer lookups of target character and deletion cost data across the rows. | |
/// </summary> | |
/// <param name="previousRowPtr"></param> | |
/// <param name="source"></param> | |
/// <param name="rowIndex"></param> | |
/// <param name="targetPtr"></param> | |
/// <param name="targetLength"></param> | |
private static unsafe void CalculateRows_4Rows_Sse41(int* previousRowPtr, ReadOnlySpan<char> source, ref int rowIndex, char* targetPtr, int targetLength) |
This file contains 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
#if NETCOREAPP3_0 | |
using System; | |
using System.Buffers; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.Intrinsics.X86; | |
using System.Runtime.Intrinsics; | |
namespace Quickenshtein | |
{ | |
/// <summary> |
This file contains 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
#if NETCOREAPP3_0 | |
using System; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.Intrinsics; | |
using System.Runtime.Intrinsics.X86; | |
namespace Quickenshtein | |
{ | |
public static partial class Levenshtein | |
{ |
This file contains 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
namespace Schema.NET | |
{ | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
/// <summary> | |
/// A single or list of values. | |
/// </summary> |
This file contains 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
namespace Schema.NET | |
{ | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Text; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; |