Module Ocaml_simd_sse.Int64x2

type t = int64x2
type mask = int64x2
val box : t -> int64x2 @@ portable
val unbox : int64x2 @ local -> t @@ portable
val zero : unit -> t @@ portable

Equivalent to const1 #0L.

val one : unit -> t @@ portable

Equivalent to const1 #1L.

val set1 : int64 -> t @@ portable

_mm_set1_epi64x Compiles to mov,shufpd.

val set : int64 -> int64 -> t @@ portable

_mm_set_epi64x Compiles to 2x movq,punpckl.

val const1 : int64 -> t @@ portable

Argument must be a literal or an unboxing function applied to a literal. Compiles to a static vector literal. Exposed as an external so user code can compile without cross-library inlining.

val const : int64 -> int64 -> t @@ portable

Arguments must be literals or unboxing functions applied to literals. Compiles to a static vector literal. Exposed as an external so user code can compile without cross-library inlining.

module Bigstring = Load_store.Bigstring_Int64x2
module Unsafe_immediate_array = Load_store.Unsafe_immediate_array
module Unsafe_immediate_iarray = Load_store.Unsafe_immediate_iarray
module Int64_u_array = Load_store.Int64_u_array
module Nativeint_u_array = Load_store.Nativeint_u_array
module Test : Test.S with type t := t
val (>=) : t -> t -> mask @@ portable

Compiles to cmpgt,cmpeq,orpd.

val (<=) : t -> t -> mask @@ portable

Compiles to cmpgt,cmpeq,orpd.

val (=) : t -> t -> mask @@ portable

_mm_cmpeq_epi64

val (>) : t -> t -> mask @@ portable

_mm_cmpgt_epi64

val (<) : t -> t -> mask @@ portable

_mm_cmplt_epi64

val (<>) : t -> t -> mask @@ portable

Compiles to cmpeq,xorpd.

val equal : t -> t -> mask @@ portable

_mm_cmpeq_epi64

val movemask : mask -> int64 @@ portable

_mm_movemask_pd

val select : mask -> fail:t -> pass:t -> t @@ portable

_mm_blendv_pd Only reads the sign bit of each mask lane. Selects the element from pass if the sign bit is 1, otherwise fail.

val insert : idx:int64 -> t -> int64 -> t @@ portable

idx must be in 0,1.

val extract : idx:int64 -> t -> int64 @@ portable

idx must be in 0,1.

val extract0 : t -> int64 @@ portable

Projection. More efficient than extract ~idx:#0L.

val splat : t -> #(int64 * int64) @@ portable

Slow, intended for debugging / printing / etc.

val interleave_upper : even:t -> odd:t -> t @@ portable

_mm_unpackhi_epi64

val interleave_lower : even:t -> odd:t -> t @@ portable

_mm_unpacklo_epi64

val upper_to_lower : from:t -> onto:t -> t @@ portable

_mm_movehl_pd

val lower_to_upper : from:t -> onto:t -> t @@ portable

_mm_movelh_pd

val duplicate_lower : t -> t @@ portable

_mm_movedup_pd

val blend : Ocaml_simd.Blend2.t -> t -> t -> t @@ portable

_mm_blend_pd Specify blend with ppx_simd: %blend N, N, where each N is in 0,1. Exposed as an external so user code can compile without cross-library inlining.

val shuffle : Ocaml_simd.Shuffle2.t -> t -> t -> t @@ portable

_mm_shuffle_pd Specify shuffle with ppx_simd: %shuffle N, N, where each N is in 0,1. Exposed as an external so user code can compile without cross-library inlining.

val add : t -> t -> t @@ portable

_mm_add_epi64

val sub : t -> t -> t @@ portable

_mm_sub_epi64

val neg : t -> t @@ portable

Compiles to xorpd,padd.

val abs : t -> t @@ portable

Compiles to andpd,xorpd,padd,blend. Equivalent to (x < 0 ? -x : x).

val shift_left_logical : t -> int64 -> t @@ portable

_mm_sll_epi64

val shift_right_logical : t -> int64 -> t @@ portable

_mm_srl_epi64

val shifti_left_bytes : int64 -> t -> t @@ portable

_mm_bslli_si128 First argument must be an unsigned integer literal in 0,15. Exposed as an external so user code can compile without cross-library inlining.

val shifti_right_bytes : int64 -> t -> t @@ portable

_mm_bsrli_si128 First argument must be an unsigned integer literal in 0,15. Exposed as an external so user code can compile without cross-library inlining.

val shifti_left_logical : int64 -> t -> t @@ portable

_mm_slli_epi64 First argument must be an unsigned integer literal in 0,63. Exposed as an external so user code can compile without cross-library inlining.

val shifti_right_logical : int64 -> t -> t @@ portable

_mm_srli_epi64 First argument must be an unsigned integer literal in 0,63. Exposed as an external so user code can compile without cross-library inlining.

val mul_without_carry : int64 -> t -> t -> t @@ portable
val (+) : t -> t -> t @@ portable
val (-) : t -> t -> t @@ portable
val lnot : t -> t @@ portable

Compiles to xor with a static constant.

val (lor) : t -> t -> t @@ portable

_mm_or_si128

val (land) : t -> t -> t @@ portable

_mm_and_si128

val landnot : not:t -> t -> t @@ portable

_mm_andnot_si128

val (lxor) : t -> t -> t @@ portable

_mm_xor_si128

val of_float16x8_bits : float16x8 -> t @@ portable

Identity in the bit representation. Different numeric interpretation.

val of_float32x4_bits : float32x4 -> t @@ portable

Identity in the bit representation. Different numeric interpretation.

val of_float64x2_bits : float64x2 -> t @@ portable

Identity in the bit representation. Different numeric interpretation.

val of_int8x16_bits : int8x16 -> t @@ portable

Identity in the bit representation. Different numeric interpretation.

val of_int16x8_bits : int16x8 -> t @@ portable

Identity in the bit representation. Different numeric interpretation.

val of_int32x4_bits : int32x4 -> t @@ portable

Identity in the bit representation. Different numeric interpretation.

val of_int8x16 : int8x16 -> t @@ portable

_mm_cvtepi8_epi64

val of_int8x16_unsigned : int8x16 -> t @@ portable

_mm_cvtepu8_epi64

val of_int16x8 : int16x8 -> t @@ portable

_mm_cvtepi16_epi64

val of_int16x8_unsigned : int16x8 -> t @@ portable

_mm_cvtepu16_epi64

val of_int32x4 : int32x4 -> t @@ portable

_mm_cvtepi16_epi64

val of_int32x4_unsigned : int32x4 -> t @@ portable

_mm_cvtepu16_epi64

val to_string : t -> string @@ portable

Compiles to splat, sprintf.

val of_string : string -> t @@ portable

Compiles to sscanf, set. Expects a string in the output format of to_string.