MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetHexIntEnvVarOrZero

Function GetHexIntEnvVarOrZero

tensorflow/lite/experimental/ruy/test.h:1558–1564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1556}
1557
1558inline int GetHexIntEnvVarOrZero(const char* name) {
1559 const char* val = getenv(name);
1560 if (!val) {
1561 return 0;
1562 }
1563 return std::stoi(val, 0, 16);
1564}
1565
1566inline bool GetBoolEnvVarOrFalse(const char* name) {
1567 return static_cast<bool>(GetIntEnvVarOrZero(name));

Callers 1

MakeResultPathsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected