This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Description
Currently SDL_INF is used to deal with cases where there are infinities. It is defined as follows.
|
// Since C++ can't represent infinity, SDL_INF = 123456789 was used to represent infinity in the data table |
|
ALPAKA_STATIC_ACC_MEM_GLOBAL const float SDL_INF = 123456789; |
I think it would be a little more elegant to define it like this
#include <limits>
ALPAKA_STATIC_ACC_MEM_GLOBAL const float SDL_INF = std::numeric_limits<float>::infinity();
But the tricky part is that data files have the other value hardcoded, and those files were probably generated by some other code with the same value hardcoded, so it's probably not worth it fixing it here. If someone knows if that's the case they should label this issue as wontfix.