iLLD_TC27xD
1.0
|
Go to the source code of this file.
Macros | |
#define | IFXCPU_INTRINSICSGNUC_USE_MACHINE_INTRINSICS 1 |
#define | STRINGIFY(x) #x |
#define | __non_return_call(fun) __asm__ volatile ("ji %0"::"a"(fun)) |
#define | __minX(X, Y) ( ((X) < (Y)) ? (X) : (Y) ) |
#define | __maxX(X, Y) ( ((X) > (Y)) ? (X) : (Y) ) |
#define | __saturateX(X, Min, Max) ( __minX(__maxX(X, Min), Max) ) |
#define | __checkrangeX(X, Min, Max) (((X) >= (Min)) && ((X) <= (Max))) |
#define | __saturate(X, Min, Max) ( __min(__max(X, Min), Max) ) |
#define | __saturateu(X, Min, Max) ( __minu(__maxu(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)) ) |
#define | __getbit(address, bitoffset) ((*(address) & (1U << (bitoffset))) != 0) |
#define | __imaskldmst(address, value, bitoffset, bits) |
#define | __putbit(value, address, bitoffset) __imaskldmst(address, value, bitoffset,1) |
#define | __disable() __asm__ volatile ("disable" : : : "memory") |
#define | __enable() __asm__ volatile ("enable" : : : "memory") |
#define | __abs(a) __builtin_abs(a) |
#define | __clz(a) __builtin_clz(a) |
#define | NOP(n) __asm(".rept " #n "\n\tnop\n\t.endr\n") |
#define | __extru(src, start, size) |
#define | __setareg(areg, val) |
IMPORTANT NOTICE
Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.
THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
Definition in file IfxCpu_IntrinsicsGnuc.h.
#define __extru | ( | src, | |
start, | |||
size | |||
) |
Definition at line 1411 of file IfxCpu_IntrinsicsGnuc.h.
Referenced by __addr_to_cx(), and __cx_to_addr().
#define __non_return_call | ( | fun) | __asm__ volatile ("ji %0"::"a"(fun)) |
Function call without return
Definition at line 50 of file IfxCpu_IntrinsicsGnuc.h.
#define __setareg | ( | areg, | |
val | |||
) |
Definition at line 1416 of file IfxCpu_IntrinsicsGnuc.h.
#define IFXCPU_INTRINSICSGNUC_USE_MACHINE_INTRINSICS 1 |
Definition at line 34 of file IfxCpu_IntrinsicsGnuc.h.
#define STRINGIFY | ( | x) | #x |
Definition at line 46 of file IfxCpu_IntrinsicsGnuc.h.
IFX_INLINE unsigned int __cmpAndSwap | ( | unsigned int volatile * | address, |
unsigned int | value, | ||
unsigned int | condition | ||
) |
This function is a implementation of a binary semaphore using compare and swap instruction.
address | address of resource. |
value | This variable is updated with status of address |
condition | if the value of address matches with the value of condition, then swap of value & address occurs. |
Definition at line 1436 of file IfxCpu_IntrinsicsGnuc.h.
IFX_INLINE float32 __fixpoint_to_float32 | ( | fract | value, |
sint32 | shift | ||
) |
Convert a fixpoint value to float32.
This function converts a value from a fixpoint format to a float32 format.
value | value to be converted. |
shift | position of the fix point. Range = [-256, 255] => (Qx.y format where x = shift+1). |
Definition at line 1474 of file IfxCpu_IntrinsicsGnuc.h.
IFX_INLINE void* __getA11 | ( | void | ) |
Definition at line 1482 of file IfxCpu_IntrinsicsGnuc.h.
IFX_INLINE void __jump_and_link | ( | void(*)(void) | fun) |
Jump and link
Definition at line 54 of file IfxCpu_IntrinsicsGnuc.h.
IFX_INLINE void __setStackPointer | ( | void * | stackAddr) |
Definition at line 1489 of file IfxCpu_IntrinsicsGnuc.h.
IFX_INLINE void __stopPerfCounters | ( | void | ) |
__mtcr (CPU_CCTRL, 0);
Definition at line 1422 of file IfxCpu_IntrinsicsGnuc.h.