baptize_algo_bit: baptize_algo_bit

Description Usage Arguments Value Examples

Description

Assign a proper name for a bit in an algo. The naming scheme goes like this:

Any programmatic manipulation of bits should avoid to implement bit names directly and rather rely on this function to guarantee upward compatibility with future evolutions of the naming scheme.

Usage

1

Arguments

type

The bit type: INPUT_PREFIX for input or OUTPUT_PREFIX for output (character)

number

The bit number (integer)

...

For future usage

Value

The bit name

Examples

1
2
print(baptize_algo_bit(INPUT_PREFIX, 5));
print(baptize_algo_bit(OUTPUT_PREFIX, 1:4));

daviddoret/haricot documentation built on May 21, 2019, 1:42 a.m.