Skip to content

Commit 2c32407

Browse files
author
bjn
committed
Using inline macro CYCFI_FORCE_INLINE
1 parent 0de1b3f commit 2c32407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/element/tile.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace cycfi::elements
9292
}
9393

9494
template<axis Axis, class TileElement, axis OtherAxis = other(Axis)>
95-
[[gnu::always_inline]] inline auto compute_limits(basic_context const& ctx, const TileElement &tile) -> view_limits
95+
CYCFI_FORCE_INLINE auto compute_limits(basic_context const& ctx, const TileElement &tile) -> view_limits
9696
{
9797
view_limits limits{{0.0, 0.0},
9898
{Axis == axis::x ? 0.0 : full_extent,
@@ -113,7 +113,7 @@ namespace cycfi::elements
113113
}
114114

115115
template<axis Axis, class TileElement, axis OtherAxis = other(Axis)>
116-
[[gnu::always_inline]] inline auto compute_layout(context const& ctx, TileElement &tile, std::vector<float> &tile_offsets) -> void
116+
CYCFI_FORCE_INLINE auto compute_layout(context const& ctx, TileElement &tile, std::vector<float> &tile_offsets) -> void
117117
{
118118
auto const sz = tile.size();
119119

@@ -156,7 +156,7 @@ namespace cycfi::elements
156156
}
157157

158158
template<axis Axis, axis OtherAxis = other(Axis)>
159-
[[gnu::always_inline]] inline auto compute_bounds_of(rect const& bounds, std::size_t index, const std::vector<float> &tile_offsets) -> rect
159+
CYCFI_FORCE_INLINE auto compute_bounds_of(rect const& bounds, std::size_t index, const std::vector<float> &tile_offsets) -> rect
160160
{
161161
if (index >= tile_offsets.size())
162162
return {};

0 commit comments

Comments
 (0)