Chapter 2
C Language Reference
2-32
ni.com
Macro Interface
The macro interface files are:
sa_types.h
Updated to include fixed-point types.
sa_fx.h
Contains fixed-point conversion macros.
sa_fxp.h
Contains fixed-point conversion macros with
overflow protection.
sa_fxr.h
Contains fixed-point relational macros.
sa_fxm.h
Contains fixed-point arithmetic macros.
sa_fxmp.h
Contains fixed-point arithmetic macros with
overflow protection. For 32-bit division and
multiplication, overflow sometimes cannot be
detected.
sa_fx_temps.h
Contains the declaration information for
temporary variables used in fixed-point
computations.
sa_fxprv.h
Contains macros used only by the other macros.
sa_fxscale.h
Contains scale factor constants for different radix
values.
sa_fxlimit.h
Contains maximum and minimum values that can
be represented in different fixed-point types.
sa_fxadd_byte.c
Contains fixed-point addition functions for byte
data type.
sa_fxadd_short.c
Contains fixed-point addition functions for short
data type.
sa_fxadd_long.c
Contains fixed-point addition functions for long
data type.
sa_fxsub_byte.c
Contains fixed-point subtraction functions for byte
data type.
sa_fxsub_short.c
Contains fixed-point subtraction functions for
short data type.
sa_fxsub_long.c
Contains fixed-point subtraction functions for
long data type.
sa_fxmul_long.c
Contains fixed-point multiplication functions for
long data type. Multiplication for byte and short
data types are completely implemented as macros.
sa_fxdiv_long.c
Contains fixed-point division functions for long
data type.