-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from MrUnbelievable92/2.9.0
Version 2.9.0
- Loading branch information
Showing
1,139 changed files
with
324,297 additions
and
139,336 deletions.
There are no files selected for viewing
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
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
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
2 changes: 1 addition & 1 deletion
2
...perations/Integer Division/By Vector.meta → Runtime/Compiler Extensions.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//#define TESTING | ||
|
||
using Unity.Burst; | ||
|
||
namespace MaxMath | ||
{ | ||
internal static class COMPILATION_OPTIONS | ||
{ | ||
internal static OptimizeFor OPTIMIZE_FOR | ||
{ | ||
get; | ||
#if TESTING | ||
set; | ||
#endif | ||
} = OptimizeFor.Performance; | ||
|
||
internal static FloatMode FLOAT_MODE | ||
{ | ||
get; | ||
#if TESTING | ||
set; | ||
#endif | ||
} = FloatMode.Default; | ||
|
||
internal static FloatPrecision FLOAT_PRECISION | ||
{ | ||
get; | ||
#if TESTING | ||
set; | ||
#endif | ||
} = FloatPrecision.Standard; | ||
|
||
|
||
internal static bool FLOAT_SIGNED_ZERO => FLOAT_MODE != FloatMode.Fast; | ||
internal static bool FLOAT_NO_NAN => FLOAT_MODE == FloatMode.Fast; | ||
internal static bool FLOAT_NO_INF => FLOAT_MODE == FloatMode.Fast; | ||
internal static bool FLOAT_DENORMALS_ARE_ZERO => FLOAT_PRECISION == FloatPrecision.Low; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...os/Vector Assume Intrinsic Helper.cs.meta → ...er Extensions/Compilation Options.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Tests/Editor/Types/Unity.meta → Runtime/Compiler Extensions/constexpr.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
Runtime/Compiler Extensions/constexpr/Condition Validation.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Runtime.CompilerServices; | ||
using Unity.Burst.CompilerServices; | ||
|
||
namespace MaxMath.Intrinsics | ||
{ | ||
public static partial class constexpr | ||
{ | ||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static bool IS_CONST<T>(T value) | ||
where T : unmanaged | ||
{ | ||
return Constant.IsConstantExpression(value); | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static bool IS_TRUE(bool condition) | ||
{ | ||
return IS_CONST(condition) && condition; | ||
} | ||
|
||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static bool IS_FALSE(bool condition) | ||
{ | ||
return IS_CONST(condition) && !condition; | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...sion/By Vector/Public Dispatchers.cs.meta → ...ns/constexpr/Condition Validation.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//#define TESTING | ||
|
||
using System.Runtime.CompilerServices; | ||
using Unity.Burst.CompilerServices; | ||
using DevTools; | ||
|
||
namespace MaxMath.Intrinsics | ||
{ | ||
public static partial class constexpr | ||
{ | ||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static void ASSUME(bool value) | ||
{ | ||
#if TESTING | ||
Assert.IsTrue(value); | ||
#endif | ||
Hint.Assume(value); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../Check const Vector value helpers.cs.meta → ...nsions/constexpr/Validated Assume.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.