package jasmin

  1. Overview
  2. Docs
Compiler for High-Assurance and High-Speed Cryptography

Install

dune-project
 Dependency

Authors

Maintainers

Sources

jasmin-compiler-v2026.03.0.tar.bz2
sha256=dec62a3cd0cd42cfe96ec64b3cd3961e0e8a09fb92ceb64175cffb54fde50e40

doc/src/jasmin.jasmin/interval.ml.html

Source file interval.ml

1
2
3
4
5
6
7
type interval = { min : int; max : int }
type t = interval

let size i = i.max - i.min

let pp_interval ?(closed=false) fmt { min ; max } =
  Format.fprintf fmt "[%d; %d%s" min max (if closed then "]" else "[")