iLLD_TC27xD  1.0
Fractional Arithmetic Support
Collaboration diagram for Fractional Arithmetic Support:

Macros

#define __fract_to_float(value)   ((float)(value))
 
#define __mulfractlong   __mulfractlong
 
#define __mulfractfract(fractvalue1, fractvalue2)   ((fractvalue1)*(fractvalue2))
 

Detailed Description

The next table provides an overview of intrinsic functions to convert fractional values. Note that the TASKING VX-toolset C compiler for TriCore fully supports the fractional type so normally you should not need these intrinsic functions (except for __mulfractlong). For compatibility reasons the TASKING C compiler does support these functions.

Macro Definition Documentation

#define __fract_to_float (   value)    ((float)(value))

Definition at line 104 of file IfxCpu_IntrinsicsTasking.h.

#define __mulfractfract (   fractvalue1,
  fractvalue2 
)    ((fractvalue1)*(fractvalue2))

Definition at line 108 of file IfxCpu_IntrinsicsTasking.h.

#define __mulfractlong   __mulfractlong

Definition at line 106 of file IfxCpu_IntrinsicsTasking.h.