eyalroz / cuda-kat

CUDA kernel author's tools
BSD 3-Clause "New" or "Revised" License
105 stars 8 forks source link

Simplify some of the numeric functions in math.cuh and constexpr.cuh #7

Closed eyalroz closed 5 years ago

eyalroz commented 5 years ago

There is overuse of const& T over T for parameters of some math fuctions. These functions are intended for numbers, not more complex objects; plus, they are inlined and simple enough for any copies to be optimized away, so let's not complicate our lives with references here.