Module Utils.U8

u8.ml - Definition for u8 type

type u8 = char

8-bit integer type

val u8_max : int
val u8_of_int : int -> char

Converts an integer to an u8

val signed_int_of_u8 : char -> int

Interprets an u8 as a signed integer

val u8_add : char -> char -> char

Modular addition

val u8_sub : char -> char -> char

Modular subtraction

val u8_add_multi : char list -> char

Modular addition on list elements

val u8_sub_multi : char list -> char

Modular subtraction on list elements

val u8_land : char -> char -> char

Logical AND

val u8_lor : char -> char -> char

Logical OR

val u8_lxor : char -> char -> char

Logical XOR

val u8_negate : char -> char