Commit Graph

850 Commits

Author SHA1 Message Date
RealityProgrammer 44165b310d Move exception message to the right resource resx 2023-03-14 22:03:21 +07:00
RealityProgrammer 0bf4d7ba77 Again, fix source validator reports 2023-03-14 21:41:35 +07:00
RealityProgrammer 77b0a8ca39 Move some intrinsic methods around, reimplement RuneExtensions.Repeat(Rune, Int32) 2023-03-14 21:18:01 +07:00
RealityProgrammer 8b8aeb3f56 Fix source validator's code reports, remove 95% of AdvSimd implementation to prevent future consequences 2023-03-14 19:17:19 +07:00
RealityProgrammer ec8e60c6dc Rephrase note message 2023-03-08 13:38:28 +07:00
RealityProgrammer 1651f0ed19 Software fallback implementation for methods in IntrinsicExtensions 2023-03-08 13:35:24 +07:00
RealityProgrammer 0c9623bab3 Add missing XML documentations 2023-03-08 10:14:24 +07:00
RealityProgrammer d41bdc871d Merge branch 'main' of https://github.com/RealityProgrammer/X10D 2023-03-08 09:47:59 +07:00
RealityProgrammer b251f880ff Optimize Rune.Repeat(int) when UTF8 sequence length is 1 or 2 and reformat some intrinsic code 2023-03-08 09:46:20 +07:00
Oliver Booth a685d6ec39
Merge branch 'develop' into main 2023-03-07 17:30:15 +00:00
RealityProgrammer e176f65e97 Commit git's untracked files 2023-03-07 16:50:04 +07:00
RealityProgrammer dc8b263f1e Fast Int32, Int64 packing 2023-03-07 16:48:02 +07:00
RealityProgrammer 6f343cd393 Fast Int16 packing 2023-03-07 08:58:53 +07:00
RealityProgrammer 5e4044f965 Code fixup, fast Int8 packing 2023-03-06 10:39:58 +07:00
RealityProgrammer a808cab37f Optimize DictionaryExtensions and handle CodeAnalysis errors 2023-03-06 07:50:10 +07:00
RealityProgrammer 4300e35b4e Replace stackalloc and ToArray combination to array initialization directly 2023-03-06 07:17:32 +07:00
RealityProgrammer 862d3ad189 Merge branch 'main' of https://github.com/RealityProgrammer/X10D 2023-03-06 06:49:13 +07:00
RealityProgrammer e1a7ac03c6 Added SpanExtensions and the reinterpret between Unity's structs to System.Numerics structs 2023-03-06 06:49:07 +07:00
RealityProgrammer ba8c0c6510
Merge branch 'oliverbooth:main' into main 2023-03-06 00:00:19 +07:00
RealityProgrammer 1e98e6910f Initial commit with SIMD implementation and some other specialization methods 2023-03-05 23:57:11 +07:00
Oliver Booth 799bc77ec8
Add IsEmpty/IsWhiteSpace and IsNullOrEmpty/WhiteSpace for string 2023-02-28 19:05:03 +00:00
Oliver Booth 041181cc5a
Add IEnumerable<T?>.WhereNotNull() 2023-02-27 21:11:37 +00:00
Oliver Booth 7a6dbef4f9
[ci skip] Fix null-check precondition for WhereNot<T> 2023-02-27 21:11:07 +00:00
Oliver Booth 3ef6cf2cde
Fix xmldoc for decimal.Sqrt 2023-02-27 17:19:12 +00:00
Oliver Booth db2def1eab
Add Wrap for built-in numeric types (#60) 2023-02-27 17:18:44 +00:00
Oliver Booth d1959f4ba6
[ci skip] Add unit tests for IsOnLine 2023-02-27 17:05:59 +00:00
Oliver Booth f5b88e5309
[github actions] Use .NET 7 2023-02-27 16:59:35 +00:00
Oliver Booth 3607034818
[X10D.Unity] Add tests for Color(32).Deconstruct 2023-02-27 13:55:06 +00:00
Oliver Booth 55a2e99b82
Update project to 2021.3.19f1 2023-02-27 13:54:26 +00:00
Oliver Booth 3fc2e7259e
Add Random.NextFrom([ReadOnly]Span<T>) 2023-02-27 13:15:20 +00:00
Oliver Booth d1454a1170
[ci skip] Add unit tests for ScaleRange
Add Aggressive implementations, and annotate as Pure
2023-02-26 13:33:01 +00:00
Oliver Booth 81f1a7c1e0
Inline Lerp/InverseLerp expression in ScaleRange 2023-02-26 13:26:08 +00:00
Oliver Booth 795d696eca
Add GammaToLinear and LinearToGamma (#60) 2023-02-26 13:10:59 +00:00
Oliver Booth f0bce2983a
Fix CS1574 in ListExtensions
Count property is defined for IReadOnlyCollection<T> not IReadOnlyList<T>

Oops
2023-02-26 12:27:12 +00:00
Oliver Booth ca1b1ccbf2
Add GreatestCommonFactor for built-in integer types 2023-02-26 12:25:50 +00:00
Oliver Booth 622141443c
[ci skip] Use .NET 7 SDK for solution 2023-02-26 12:09:34 +00:00
Oliver Booth 2aab9e8d6a
Use .NET 7 SDK for solution 2023-02-26 00:49:31 +00:00
Oliver Booth d461c464df
Rewrite TimeSpanParserTests
The tests previously worked on the assumption that TryParse would throw an exception on null argument. This was changed with 94a841b2fc but the tests were not updated to reflect that
2023-02-26 00:46:01 +00:00
Oliver Booth ba7329febd
[ci skip] Remove trailing whitespace on line 10 2023-02-26 00:38:56 +00:00
Oliver Booth d9cf9c8db5
Add Nullable<T>.TryGetValue (resolves #61) 2023-02-26 00:35:22 +00:00
Oliver Booth c6849a0745
[ci skip] style=flat-square for shields.io badges 2023-02-23 17:55:25 +00:00
Oliver Booth 17ad19546a
[ci skip] Fix workflow link in shield 2023-02-23 17:54:37 +00:00
Oliver Booth a076a61ae4
Add DiscordGuild.GetMemberOrNullAsync
D#+ throws an undocumented NotFoundException when a member does not exist. This method returns null instead
2023-02-19 15:27:51 +00:00
Oliver Booth 6cd7d8d5ce
Add DiscordClient.GetUserOrNullAsync
D#+ throws an undocumented NotFoundException when a user does not exist. This method returns null instead
2023-02-19 15:27:25 +00:00
Oliver Booth eadb66f470
Add MathUtility.ScaleRange 2023-02-05 14:28:42 +00:00
Oliver Booth 384ec3f61c
[ci skip] Set ContinuousIntegrationBuild to true for CI builds 2023-02-05 13:51:58 +00:00
Oliver Booth ea51adc632
Cache Singleton<T> instance on Awake 2022-12-31 14:49:32 +00:00
Oliver Booth 35591b05e2
Add ReadOnlySpan<char> overload for TimeSpanParser
Also tidies up the code here to reduce complexity
2022-12-22 20:19:52 +00:00
Oliver Booth 8ff3447b85
[ci skip] *Actually* fix badge link
I did not read https://github.com/badges/shields/issues/8671 well enough
2022-12-22 12:31:38 +00:00
Oliver Booth ce255a86b3
[ci skip] Fix workflow badge link
https://github.com/badges/shields/issues/8671
2022-12-22 12:30:48 +00:00