package ocaml_intrinsics_kernel

  1. Overview
  2. Docs
val 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.

val 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.

OCaml

Innovation. Community. Security.