This is an old revision of the document!
Namespace std
The std
namespace contains a collection of standard definitions for channels, data types, and other components. This can be viewed as ACT's equivalent of the C++ standard template library.
Functions
export function max(pint a, b) : pint;
Returns the larger of the two pint
s.
export function min(pint a, b) : pint;
Returns the smaller of the two pint
s.
export function ceil_log2 (pint a) : pint;
Computes the smallest power of two that is at least as large as a
.
export function pow(pint n, m) : pint;
Computes the quantity n
to the power of m
. Note that pint
s use 64-bit representation.