Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopySign()

static double System.Math.CopySign ( double x,
double y )
inlinestatic

Definition at line 312 of file Math.cs.

313 {
315 {
317 }
318 return SoftwareFallback(x, y);
319 static double SoftwareFallback(double x, double y)
320 {
321 long num = BitConverter.DoubleToInt64Bits(x);
322 long num2 = BitConverter.DoubleToInt64Bits(y);
323 num &= 0x7FFFFFFFFFFFFFFFL;
324 num2 &= long.MinValue;
325 return BitConverter.Int64BitsToDouble(num | num2);
326 }
327 }
static Vector128< float > ConditionalSelectBitwise(Vector128< float > selector, Vector128< float > ifTrue, Vector128< float > ifFalse)
Definition VectorMath.cs:11
static unsafe Vector128< byte > CreateScalarUnsafe(byte value)
Definition Vector128.cs:829
static new bool IsSupported
Definition Sse2.cs:60

References System.Numerics.VectorMath.ConditionalSelectBitwise(), System.Runtime.Intrinsics.Vector128< T >.CreateScalarUnsafe(), System.BitConverter.DoubleToInt64Bits(), System.BitConverter.Int64BitsToDouble(), System.Runtime.Intrinsics.Arm.AdvSimd.IsSupported, System.Runtime.Intrinsics.X86.Sse2.IsSupported, and System.L.

Referenced by System.Double.CopySign(), and System.Math.Round().