iLLD_TC29x  1.0
Floating point operation
Collaboration diagram for Floating point operation:

Macros

#define __saturate(X, Min, Max)   ( __minf(__maxf(X, Min), Max) )
 
#define __sqrf(X)   ((X) * (X))
 
#define __sqrtf(X)   sqrtf(X)
 
#define __checkrange(X, Min, Max)   (((X) >= (Min)) && ((X) <= (Max)))
 
#define __roundf(X)   ((((X) - (sint32)(X)) > 0.5) ? (1 + (sint32)(X)) : ((sint32)(X)))
 
#define __absf(X)   ( ((X) < 0.0) ? -(X) : (X) )
 
#define __minf(X, Y)   ( ((X) < (Y)) ? (X) : (Y) )
 
#define __maxf(X, Y)   ( ((X) > (Y)) ? (X) : (Y) )
 
#define __saturatef(X, Min, Max)   ( __minf(__maxf(X, Min), Max) )
 
#define __checkrangef(X, Min, Max)   (((X) >= (Min)) && ((X) <= (Max)))
 
#define __abs_stdreal(X)   ( ((X) > 0.0) ? (X) : -(X) )
 
#define __min_stdreal(X, Y)   ( ((X) < (Y)) ? (X) : (Y) )
 
#define __max_stdreal(X, Y)   ( ((X) > (Y)) ? (X) : (Y) )
 
#define __saturate_stdreal(X, Min, Max)   ( __min_stdreal(__max_stdreal(X, Min), Max) )
 
#define __neqf(X, Y)   ( ((X) > (Y)) || ((X) < (Y)) )
 
#define __leqf(X, Y)   ( !((X) > (Y)) )
 
#define __geqf(X, Y)   ( !((X) < (Y)) )
 

Detailed Description

Macro Definition Documentation

#define __abs_stdreal (   X)    ( ((X) > 0.0) ? (X) : -(X) )

Definition at line 112 of file IfxCpu_IntrinsicsDcc.h.

#define __checkrange (   X,
  Min,
  Max 
)    (((X) >= (Min)) && ((X) <= (Max)))

Definition at line 103 of file IfxCpu_IntrinsicsDcc.h.

#define __checkrangef (   X,
  Min,
  Max 
)    (((X) >= (Min)) && ((X) <= (Max)))

Definition at line 110 of file IfxCpu_IntrinsicsDcc.h.

#define __geqf (   X,
 
)    ( !((X) < (Y)) )

X >= Y

Definition at line 119 of file IfxCpu_IntrinsicsDcc.h.

#define __leqf (   X,
 
)    ( !((X) > (Y)) )
#define __max_stdreal (   X,
 
)    ( ((X) > (Y)) ? (X) : (Y) )

Definition at line 114 of file IfxCpu_IntrinsicsDcc.h.

#define __maxf (   X,
 
)    ( ((X) > (Y)) ? (X) : (Y) )

Definition at line 108 of file IfxCpu_IntrinsicsDcc.h.

Referenced by IfxMultican_Can_initModule().

#define __min_stdreal (   X,
 
)    ( ((X) < (Y)) ? (X) : (Y) )

Definition at line 113 of file IfxCpu_IntrinsicsDcc.h.

#define __minf (   X,
 
)    ( ((X) < (Y)) ? (X) : (Y) )

Definition at line 107 of file IfxCpu_IntrinsicsDcc.h.

Referenced by IfxMultican_Can_initModule().

#define __neqf (   X,
 
)    ( ((X) > (Y)) || ((X) < (Y)) )

X != Y

Definition at line 117 of file IfxCpu_IntrinsicsDcc.h.

Referenced by IfxQspi_calculateExtendedConfigurationValue().

#define __roundf (   X)    ((((X) - (sint32)(X)) > 0.5) ? (1 + (sint32)(X)) : ((sint32)(X)))
#define __saturate (   X,
  Min,
  Max 
)    ( __minf(__maxf(X, Min), Max) )

Definition at line 99 of file IfxCpu_IntrinsicsDcc.h.

#define __saturate_stdreal (   X,
  Min,
  Max 
)    ( __min_stdreal(__max_stdreal(X, Min), Max) )

Definition at line 115 of file IfxCpu_IntrinsicsDcc.h.

#define __saturatef (   X,
  Min,
  Max 
)    ( __minf(__maxf(X, Min), Max) )

Definition at line 109 of file IfxCpu_IntrinsicsDcc.h.

#define __sqrf (   X)    ((X) * (X))

Definition at line 101 of file IfxCpu_IntrinsicsDcc.h.

#define __sqrtf (   X)    sqrtf(X)

Definition at line 102 of file IfxCpu_IntrinsicsDcc.h.