daily update on 20230316 by nitload youmu

This commit is contained in:
Nitload
2023-03-17 01:52:35 +08:00
parent 2b3c6cea88
commit 167e33a3dd
95 changed files with 191669 additions and 85 deletions
+13
View File
@@ -8,5 +8,18 @@ namespace StgSharp.Math
{
public static unsafe partial class Calc
{
public static unsafe float Abs(float x)
{
uint* a = (uint*)&x;
*a &= 0b_0111_1111_1111_1111_1111_1111_1111_1111;
return *(float*)a;
}
}
}