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.
#define __fract_to_float |
( |
|
value) | |
((float)(value)) |
#define __mulfractfract |
( |
|
fractvalue1, |
|
|
|
fractvalue2 |
|
) |
| ((fractvalue1)*(fractvalue2)) |
#define __mulfractlong __mulfractlong |