Template Struct CurveStringHash
Defined in File Curve.cuh
Struct Documentation
-
template<unsigned int N, unsigned int I>
struct CurveStringHash Non terminal template structure has function for a constant char array Use of template meta-programming ensures the compiler can evaluate string hashes at compile time. This reduces constant string variable names to a single 32 bit value. Hashing is based on ‘Quasi Compile Time String Hashing’ at http:// www.altdevblogaday.com/2011/10/27/quasi-compile-time-string-hashing/ Code uses compilation flags for both the host and the CUDA device.
- Return:
a 32 bit cuRVE string variable hash.
Public Static Functions
-
__device__ __host__ static inline Curve::VariableHash Hash(const char (&str)[N])