daily update on 20230413 by nitload youmu

This commit is contained in:
Nitload
2023-04-13 23:28:18 +08:00
parent 7d24d4e7b0
commit 0995a1c501
32 changed files with 179 additions and 35 deletions
+6 -3
View File
@@ -14,11 +14,14 @@ namespace StgSharp.Math
uint* a = (uint*)&x;
*a &= 0b_0111_1111_1111_1111_1111_1111_1111_1111;
return *(float*)a;
}
public static unsafe int Abs(int x)
{
uint* a = (uint*)&x;
*a &= 0b_0111_1111_1111_1111_1111_1111_1111_1111;
return *(int*)a;
}
}