_NULLF - null function.

Usage:

out = _nullf(in);

Where:

in;
is any value filling a machine word.
out;
is the same value as "in".

Description:

"_nullf" is a null function. Its result is the same machine word that it is given.

"_nullf" is useful for coercing some types of data into other types. For example, suppose you have

float x;
int i;
int _nullf(float);
     ...
i = _nullf(x);

The "float" value "x" is passed as an argument to "_nullf" and the same machine word (bit pattern) is returned and assigned to "i". In this way, the bit pattern of "x" is assigned to "i".

Notes:

Using the #equate preprocessing directive, several different functions with different prototypes can all be associated with the "_nullf" routine.

Copyright © 1996, Thinkage Ltd.