daily update on 20230813 by nitload youmu, weritting matrix algs

This commit is contained in:
Nitload
2023-08-13 22:45:22 +08:00
parent f9f339405e
commit 969406c4e4
212 changed files with 14880 additions and 13745 deletions
+17 -1
View File
@@ -1,11 +1,27 @@
using System;
using System.Runtime.CompilerServices;
namespace StgSharp.Math
{
public static partial class Calc
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Sqrt(float x)
{
public static unsafe float Sqrt(float x)
/**/
#if NET6_0_OR_GREATER
return System.MathF.Sqrt(x);
#else
/**/
return internalIO.sqrtss_const_internal(x);
/**/
#endif
/**/
}
public static unsafe float SeedSqrt(float x)
{
/*
* 本方法采用分别对指数和小数处理的方法计算平方根