MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / classify

Function classify

src/program.cpp:355–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353
354template <class T>
355static std::string classify(T x)
356{
357 switch(std::fpclassify(static_cast<double>(x)))
358 {
359 case FP_INFINITE: return "inf";
360 case FP_NAN: return "nan";
361 case FP_NORMAL: return "normal";
362 case FP_SUBNORMAL: return "subnormal";
363 case FP_ZERO: return "zero";
364 default: return "unknown";
365 }
366}
367
368static void print_statistics(std::ostream& os, const argument& a)
369{

Callers 1

classify_argumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected