Skip to content

Commit 7f7b0aa

Browse files
committed
fixed geometric_traits
1 parent e7598b7 commit 7f7b0aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modm/math/geometry/geometric_traits.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,16 @@ namespace modm
9696
static const bool isValidType = true;
9797

9898
using FloatType = float;
99+
// %% if target == "stm32"
99100
// using WideType = int64_t;
101+
// %% else if target == "avr"
100102

101103
// OPTIMIZE only fall back to int32_t on avr architecture
102104
// Usually the range of a int32_t is big enough so that no
103105
// conversion to int64_t is required. This exception is made because
104106
// 64-bit operations are very, very slow on an AVR.
105107
using WideType = int32_t;
108+
// %% endif
106109

107110
static inline int32_t
108111
round(float value)

0 commit comments

Comments
 (0)