package ocaml_intrinsics_kernel

  1. Overview
  2. Docs

Module Ocaml_intrinsics_kernel.FloatSource

Sourceval min : float -> float -> float

Equivalent to if x < y then x else y.

On an x86-64 machine, this compiles to minsd xmm0, xmm1. On ARM, this calls a C implementation.

Sourceval max : float -> float -> float

Equivalent to if x > y then x else y.

On an x86-64 machine, this compiles to maxsd xmm0, xmm1. On ARM, this calls a C implementation.