← Standard library

int64x2

struct int64x2

Available without an import.

A 128-bit SIMD value containing 2 int64 lanes. Arithmetic operates lane-wise, with integer overflow wrapping within each lane. Lane and WithLane require constant indices; bracket indexing supports checked runtime indices. Comparisons return all-one/all-zero integer masks. Bit reinterpretation involving floating-point lanes canonicalizes NaNs.

Simd.wax:1378

Members

Splatmethod

public static fn Splat(int64 value) : int64x2

Copies one scalar value into every lane.

Simd.wax:1384

Zeromethod

public static fn Zero() : int64x2

Returns a vector whose lanes are all zero.

Simd.wax:1388

constructorconstructor

public constructor (int64 l0, int64 l1)

Creates a vector from scalar lanes in ascending index order.

Simd.wax:1392

Lanemethod

public fn Lane(int32 index) : int64

Reads a compile-time constant lane index in [0, 2). Invalid or nonconstant indices are rejected; use bracket indexing for runtime indices.

Simd.wax:1397

ReduceSummethod

public fn ReduceSum() : int64

Sums every lane into the scalar result. Arithmetic wraps at the scalar result width; narrow lanes are widened before addition.

Simd.wax:1403

Absmethod

public fn Abs() : int64x2

Returns each lane's magnitude. A minimum signed lane remains the negative minimum because its positive magnitude does not fit.

Simd.wax:1409

Eqmethod

public fn Eq(int64x2 other) : int64x2

Compares corresponding lanes for equal, returning all-one bits for true and all-zero bits for false. Ordered comparisons use the lane type's signedness.

Simd.wax:1414

Nemethod

public fn Ne(int64x2 other) : int64x2

Compares corresponding lanes for unequal, returning all-one bits for true and all-zero bits for false. Ordered comparisons use the lane type's signedness.

Simd.wax:1419

Ltmethod

public fn Lt(int64x2 other) : int64x2

Compares corresponding lanes for less, returning all-one bits for true and all-zero bits for false. Ordered comparisons use the lane type's signedness.

Simd.wax:1424

Lemethod

public fn Le(int64x2 other) : int64x2

Compares corresponding lanes for less or equal, returning all-one bits for true and all-zero bits for false. Ordered comparisons use the lane type's signedness.

Simd.wax:1429

Gtmethod

public fn Gt(int64x2 other) : int64x2

Compares corresponding lanes for greater, returning all-one bits for true and all-zero bits for false. Ordered comparisons use the lane type's signedness.

Simd.wax:1434

Gemethod

public fn Ge(int64x2 other) : int64x2

Compares corresponding lanes for greater or equal, returning all-one bits for true and all-zero bits for false. Ordered comparisons use the lane type's signedness.

Simd.wax:1439

AnyTruemethod

public fn AnyTrue() : bool

Tests whether any lane has a nonzero bit pattern.

Simd.wax:1443

AllTruemethod

public fn AllTrue() : bool

Tests whether every lane has a nonzero bit pattern.

Simd.wax:1447

Bitmaskmethod

public fn Bitmask() : int32

Packs each lane's most significant bit into the corresponding bit of an integer; lane zero becomes bit zero.

Simd.wax:1452

WithLanemethod

public fn WithLane(int32 index, int64 value) : int64x2

Returns a copy with one lane replaced. The index must be a compile-time constant in [0, 2); use bracket assignment for runtime indices.

Simd.wax:1457

Shufflemethod

public fn Shuffle(int32 l0, int32 l1) : int64x2

Returns lanes selected in argument order. Every index must be a compile-time constant in [0, 2); repeats are allowed.

Simd.wax:1462

Selectmethod

public fn Select(int64x2 a, int64x2 b) : int64x2

Selects bits from a where this mask has one bits and from b where it has zero bits. Comparison masks select entire lanes; arbitrary masks can mix bits within a lane.

Simd.wax:1467

Blendmethod

public fn Blend(float64x2 a, float64x2 b) : float64x2

Selects floating-point bits from a where this integer mask has one bits and from b where it has zero bits. Comparison masks select entire lanes.

Simd.wax:1473

AsInt8x16method

public fn AsInt8x16() : int8x16

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1479

AsUint8x16method

public fn AsUint8x16() : uint8x16

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1485

AsInt16x8method

public fn AsInt16x8() : int16x8

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1491

AsUint16x8method

public fn AsUint16x8() : uint16x8

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1497

AsInt32x4method

public fn AsInt32x4() : int32x4

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1503

AsUint32x4method

public fn AsUint32x4() : uint32x4

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1509

AsUint64x2method

public fn AsUint64x2() : uint64x2

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1515

AsFloat32x4method

public fn AsFloat32x4() : float32x4

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1521

AsFloat64x2method

public fn AsFloat64x2() : float64x2

Reinterprets this 128-bit value with the destination lane shape rather than converting numerically. Floating-point NaN lanes are canonicalized on either side of the reinterpretation; NaN payload bits are not preserved.

Simd.wax:1527

Loadmethod

public static fn Load(Span<uint8> data, int32 byteOffset) : int64x2

Reads 16 bytes starting at byteOffset as this lane type. The complete range must fit the span or the operation panics. No alignment requirement is imposed.

Simd.wax:1532

LoadAlignedmethod

public static fn LoadAligned(Span<uint8> data, int32 byteOffset) : int64x2

Reads 16 bytes with the same bounds checks and behavior as Load. Alignment is a hint; unaligned addresses are accepted.

Simd.wax:1537

Storemethod

public fn Store(Span<uint8> data, int32 byteOffset) : void

Writes all 16 bytes at byteOffset. The complete range must fit the span or the operation panics. Does not resize or retain the span.

Simd.wax:1542

LoadElemsmethod

public static fn LoadElems(Span<int64> data, int32 elemIndex) : int64x2

Reads 2 consecutive elements starting at elemIndex. The whole element range must fit or the operation panics; indices count elements, not bytes.

Simd.wax:1547

StoreElemsmethod

public fn StoreElems(Span<int64> data, int32 elemIndex) : void

Writes 2 consecutive elements starting at elemIndex. The whole element range must fit or the operation panics; indices count elements, not bytes.

Simd.wax:1552

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.