[][src]Module pir_8_emu::util

Module containing various utility functions.

Functions

limit_to_width

Limit the specified number to be at most the specified bit-width

min_byte_width

Limit the specified number to be at most the specified bit-width

parse_with_prefix

Parse a number from the specified string, automatically detecting the base prefix.

remove_comment

Strip off all data starting with the specified character, if exists