Skip to content

Commit

Permalink
Use TETL_NO_UNIQUE_ADDRESS.
Browse files Browse the repository at this point in the history
Includes mode for MSVC
  • Loading branch information
tobiashienzsch committed Feb 24, 2024
1 parent 44b71a4 commit eef47b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/grit/audio/delay/non_owning_delay_line.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct NonOwningDelayLine
etl::size_t _delay{0};
etl::size_t _writePos{0};
etl::mdspan<Float, Extent> _buffer;
[[no_unique_address]] Interpolation _interpolator{};
TETL_NO_UNIQUE_ADDRESS Interpolation _interpolator{};
};

template<etl::floating_point Float, typename Extent, typename Interpolation>
Expand Down
6 changes: 3 additions & 3 deletions lib/grit/audio/dynamic/dynamic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ struct Dynamic
}

private:
[[no_unique_address]] LevelDetector _levelDetector;
[[no_unique_address]] GainComputer _gainComputer;
[[no_unique_address]] Ballistics _ballistics;
TETL_NO_UNIQUE_ADDRESS LevelDetector _levelDetector;
TETL_NO_UNIQUE_ADDRESS GainComputer _gainComputer;
TETL_NO_UNIQUE_ADDRESS Ballistics _ballistics;
};

} // namespace grit
2 changes: 1 addition & 1 deletion lib/grit/audio/waveshape/wave_shaper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct WaveShaper
[[nodiscard]] auto operator()(Float input) const -> Float { return _function(input); }

private:
[[no_unique_address]] Function _function;
TETL_NO_UNIQUE_ADDRESS Function _function;
};

} // namespace grit
2 changes: 1 addition & 1 deletion lib/grit/audio/waveshape/wave_shaper_adaa1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct WaveShaperADAA1

Float _xm1{0};
Float _ad1m1{0};
[[no_unique_address]] Nonlinearity _nl;
TETL_NO_UNIQUE_ADDRESS Nonlinearity _nl;
};

} // namespace grit

0 comments on commit eef47b1

Please sign in to comment.