MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / GetDoubleConst

Method GetDoubleConst

source/opt/constants.cpp:494–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494const Constant* ConstantManager::GetDoubleConst(double val) {
495 Type* float_type = context()->get_type_mgr()->GetDoubleType();
496 utils::FloatProxy<double> v(val);
497 const Constant* c = GetConstant(float_type, v.GetWords());
498 return c;
499}
500
501uint32_t ConstantManager::GetSIntConstId(int32_t val) {
502 Type* sint_type = context()->get_type_mgr()->GetSIntType();

Callers 3

GetNanFunction · 0.80
GetInfFunction · 0.80
NegateFPConstFunction · 0.80

Calls 3

GetDoubleTypeMethod · 0.80
get_type_mgrMethod · 0.80
GetWordsMethod · 0.80

Tested by

no test coverage detected