Skip to content

Add constexpr to Vec methods

Kenneth Moreland requested to merge kmorel/vtk-m:vec-constexpr into master

The constexpr keyword is helpful to add to functions and macros where possible. Better than inline, it tells the compiler that it can perform optimizations based on analysis of expressions and literals given in the code. In particular, this should help code that loops over components have proper optimizations like loop unrolling when using Vec types that have the number of components fixed.

Merge request reports

Loading