mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,54 @@
|
|||
// <auto-generated /> - edit Vector.numerics-binary.tt to modify
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.Numerics;
|
||||
|
||||
// IBinaryNumber
|
||||
public partial struct double4 : IBinaryNumber<double4>
|
||||
{
|
||||
/// <summary>Determines if every component of a value is a power of two.</summary>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
static bool IBinaryNumber<double4>.IsPow2(double4 value)
|
||||
{
|
||||
return double.IsPow2(value.X) && double.IsPow2(value.Y) && double.IsPow2(value.Z) && double.IsPow2(value.W);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
static double4 IBitwiseOperators<double4, double4, double4>.operator &(double4 a, double4 b)
|
||||
{
|
||||
return Unsafe.BitCast<long4, double4>(Unsafe.BitCast<double4, long4>(a) & Unsafe.BitCast<double4, long4>(b));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
static double4 IBitwiseOperators<double4, double4, double4>.operator |(double4 a, double4 b)
|
||||
{
|
||||
return Unsafe.BitCast<long4, double4>(Unsafe.BitCast<double4, long4>(a) | Unsafe.BitCast<double4, long4>(b));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
static double4 IBitwiseOperators<double4, double4, double4>.operator ^(double4 a, double4 b)
|
||||
{
|
||||
return Unsafe.BitCast<long4, double4>(Unsafe.BitCast<double4, long4>(a) ^ Unsafe.BitCast<double4, long4>(b));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
static double4 IBitwiseOperators<double4, double4, double4>.operator ~(double4 value)
|
||||
{
|
||||
return Unsafe.BitCast<long4, double4>(~Unsafe.BitCast<double4, long4>(value));
|
||||
}
|
||||
}
|
||||
|
||||
// the componentwise predicate mask (no interface to mirror) - the per-lane truth IsPow2 collapses
|
||||
public partial struct double4
|
||||
{
|
||||
/// <summary>Determines which components of a value are powers of two.</summary>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool4 IsPow2(double4 value)
|
||||
{
|
||||
return new bool4(double.IsPow2(value.X), double.IsPow2(value.Y), double.IsPow2(value.Z), double.IsPow2(value.W));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue