|
7 | 7 | #include "router_delay_profiling.h"
|
8 | 8 |
|
9 | 9 | #ifndef __has_attribute
|
10 |
| - #define __has_attribute(x) 0 // Compatibility with non-clang compilers. |
| 10 | +# define __has_attribute(x) 0 // Compatibility with non-clang compilers. |
11 | 11 | #endif
|
12 | 12 |
|
13 | 13 | #if defined(COMPILER_GCC) && defined(NDEBUG)
|
14 |
| -#define ALWAYS_INLINE inline __attribute__((__always_inline__)) |
| 14 | +# define ALWAYS_INLINE inline __attribute__((__always_inline__)) |
15 | 15 | #elif defined(COMPILER_MSVC) && defined(NDEBUG)
|
16 |
| -#define ALWAYS_INLINE __forceinline |
| 16 | +# define ALWAYS_INLINE __forceinline |
17 | 17 | #elif __has_attribute(always_inline)
|
18 |
| -#define ALWAYS_INLINE __attribute__((always_inline)) // clang |
| 18 | +# define ALWAYS_INLINE __attribute__((always_inline)) // clang |
19 | 19 | #else
|
20 |
| -#define ALWAYS_INLINE inline |
| 20 | +# define ALWAYS_INLINE inline |
21 | 21 | #endif
|
22 | 22 |
|
23 | 23 | //Abstract interface to a placement delay model
|
@@ -114,9 +114,9 @@ class OverrideDelayModel : public PlaceDelayModel {
|
114 | 114 | //Proper inlining of the function reduces place time by around 5%.
|
115 | 115 | //For more information: https://github.com/verilog-to-routing/vtr-verilog-to-routing/issues/1225
|
116 | 116 | friend ALWAYS_INLINE bool operator<(const t_override& lhs, const t_override& rhs) {
|
117 |
| - const short *left = reinterpret_cast<const short*> (&lhs); |
118 |
| - const short *right = reinterpret_cast<const short*> (&rhs); |
119 |
| - return std::lexicographical_compare(left, left+6, right, right+6); |
| 117 | + const short* left = reinterpret_cast<const short*>(&lhs); |
| 118 | + const short* right = reinterpret_cast<const short*>(&rhs); |
| 119 | + return std::lexicographical_compare(left, left + 6, right, right + 6); |
120 | 120 | }
|
121 | 121 | };
|
122 | 122 |
|
|
0 commit comments