10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-11 22:03:37 +02:00
QCaml/common/lib/bitstring.mli

162 lines
3.0 KiB
OCaml
Raw Normal View History

2020-12-26 01:47:55 +01:00
(* Type *)
(* [[file:../bitstring.org::*Type][Type:1]] *)
type t
(* Type:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~of_int~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~of_int~][~of_int~:1]] *)
val of_int : int -> t
(* ~of_int~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~of_z~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~of_z~][~of_z~:1]] *)
val of_z : Z.t -> t
(* ~of_z~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~zero~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~zero~][~zero~:1]] *)
val zero : int -> t
(* ~zero~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~numbits~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~numbits~][~numbits~:1]] *)
val numbits : t -> int
(* ~numbits~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~is_zero~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~is_zero~][~is_zero~:1]] *)
val is_zero : t -> bool
(* ~is_zero~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~neg~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~neg~][~neg~:1]] *)
val neg : t -> t
(* ~neg~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~shift_left~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~shift_left~][~shift_left~:1]] *)
val shift_left : t -> int -> t
(* ~shift_left~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~shift_right~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~shift_right~][~shift_right~:1]] *)
val shift_right : t -> int -> t
(* ~shift_right~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~shift_left_one~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~shift_left_one~][~shift_left_one~:1]] *)
val shift_left_one : int -> int -> t
(* ~shift_left_one~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~testbit~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~testbit~][~testbit~:1]] *)
val testbit : t -> int -> bool
(* ~testbit~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~logor~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~logor~][~logor~:1]] *)
val logor : t -> t -> t
(* ~logor~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~logxor~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~logxor~][~logxor~:1]] *)
val logxor : t -> t -> t
(* ~logxor~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~logand~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~logand~][~logand~:1]] *)
val logand : t -> t -> t
(* ~logand~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~lognot~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~lognot~][~lognot~:1]] *)
val lognot : t -> t
(* ~lognot~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~minus_one~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~minus_one~][~minus_one~:1]] *)
val minus_one : t -> t
(* ~minus_one~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~plus_one~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~plus_one~][~plus_one~:1]] *)
val plus_one : t -> t
(* ~plus_one~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~trailing_zeros~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~trailing_zeros~][~trailing_zeros~:1]] *)
val trailing_zeros : t -> int
(* ~trailing_zeros~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~hamdist~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~hamdist~][~hamdist~:1]] *)
val hamdist : t -> t -> int
(* ~hamdist~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~popcount~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~popcount~][~popcount~:1]] *)
val popcount : t -> int
(* ~popcount~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~to_list~ *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*~to_list~][~to_list~:1]] *)
val to_list : ?accu:(int list) -> t -> int list
(* ~to_list~:1 ends here *)
2020-12-27 17:38:04 +01:00
(* ~permutations~ *)
2020-12-27 16:36:25 +01:00
2020-12-26 01:47:55 +01:00
2020-12-26 01:54:39 +01:00
(* [[file:../bitstring.org::*~permutations~][~permutations~:1]] *)
val permutations : int -> int -> t list
(* ~permutations~:1 ends here *)
2020-12-26 01:47:55 +01:00
2020-12-27 16:36:25 +01:00
(* Printers *)
2020-12-26 01:47:55 +01:00
(* [[file:../bitstring.org::*Printers][Printers:1]] *)
val pp : Format.formatter -> t -> unit
(* Printers:1 ends here *)