Conversion function instantiations, Table 3-10. conversion function naming conventions, Conversion function instantiations -27 – National Instruments AutoCode NI MATRIX User Manual
Page 89

Chapter 3
Ada Language Reference
© National Instruments Corporation
3-27
Conversion Function Instantiations
The
RT_FIXED_OPERATORS
package contains instantiations of functions
that represent conversion of values to and from a fixed-point type. The
appropriate generic function from the
SA_FIXED_GENERICS
package is
chosen to instantiate the function. The name of the instantiated function
follows a convention that indicates what type of conversion is to be done.
Table 3-10 defines the naming convention for conversion functions.
Table 3-10. Conversion Function Naming Conventions
Conversion Type
Name
1
Fixed to
RT_INTEGER
RT_YYxx_I
Fixed to
RT_INTEGER
(truncation)
RT_YYxx_It
Fixed to
RT_INTEGER
(round)
RT_YYxx_Ir
Fixed to
RT_LONG_INTEGER
RT_YYxx_LI
Fixed to
RT_LONG_INTEGER
(truncation)
RT_YYxx_LIt
Fixed to
RT_LONG_INTEGER
(round)
RT_YYxx_LIr
Fixed to
RT_BOOLEAN
RT_YYxx_B
Fixed to
RT_FLOAT
RT_FLOAT
RT_INTEGER
to Fixed
RT_YYxx
RT_LONG_INTEGER
to Fixed
RT_YYxx
RT_BOOLEAN
to Fixed
RT_YYxx
RT_FLOAT
to Fixed
RT_YYxx
RT_FLOAT
to Fixed (truncation)
RT_YYxxt
RT_FLOAT
to Fixed (round)
RT_YYxxr
Fixed to Fixed (different types)
RT_YYxx
Fixed to Fixed (different types, truncation)
RT_YYxxt
Fixed to Fixed (different types, round)
RT_YYxxr
Fixed to Fixed (same type, no-op cast)
YYxx
1
YY indicates the short name of a fixed-point type xx is the two-digit radix.