Next: Finalization functions, Previous: Unordered-set functions, Up: Run-time library functions [Contents][Index]
The coNCePTuaL language contains a number of built-in functions
that perform various operations on floating-point numbers (used
when writing to a log file or the standard output device) and
integers (used at all other times) and that determine the IDs of
neighboring tasks on a variety of topologies. Each function occurs
in two forms: ncptl_func_function
, which
maps ncptl_int
s to
ncptl_int
s, and ncptl_dfunc_function
,
which maps double
s to double
s. See Built-in
functions, for additional details about each function’s
semantics.
Although some of the functions described in this section are fairly simple, including them in the run-time library ensures that each function returns the same value across different backends and across different platforms.
• Integer-function descriptions: | Mapping one integer to another | |
• Floating-point-function descriptions: | Mapping one FP number to another | |
• Topology-function descriptions: | Locating nearby tasks | |
• Random-number-function descriptions: | Choosing numbers at random |