This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
can/Inc/mmr_can_optimize.h
T
Stefano Calabretti f5c8353245 Add documentation
2022-02-23 13:21:34 +01:00

27 lines
489 B
C

/**
* @file mmr_can_optimize.h
* @brief
* Low level optimization utilities.
*/
#ifndef INC_MMR_CAN_OPTIMIZE_H_
#define INC_MMR_CAN_OPTIMIZE_H_
#ifdef __GNUC__
/**
* @brief
* Tells the compiler that the given method
* must always be inlined.
*
* @example
* static always_inline int min(int a, int b) {
* return a < b ? a : b;
* }
*/
#define always_inline inline __attribute__((always_inline))
#else
#define always_inline inline
#endif
#endif /* INC_MMR_CAN_OPTIMIZE_H_ */