MCPcopy Create free account
hub / github.com/GoSSIP-SJTU/Armariris / convertToInteger

Method convertToInteger

lib/Support/APFloat.cpp:2211–2239  ·  view source on GitHub ↗

Same as convertToSignExtendedInteger, except we provide deterministic values in case of an invalid operation exception, namely zero for NaNs and the minimal or maximal value respectively for underflow or overflow. The *isExact output tells whether the result is exact, in the sense that converting it back to the original floating point type produces the original value. This is al

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

HandleFloatToIntCastFunction · 0.80
CheckICEFunction · 0.80
DiagnoseFloatingImpCastFunction · 0.80
getNarrowingKindMethod · 0.80
ConvertToSIntFunction · 0.80
walkForwardsMethod · 0.80
convertMethod · 0.80
FoldFCmp_IntToFP_CstMethod · 0.80
getConstantValueMethod · 0.80

Calls 6

partCountForBitsFunction · 0.85
getNumWordsMethod · 0.80
APIntClass · 0.50
getBitWidthMethod · 0.45
dataMethod · 0.45
isSignedMethod · 0.45

Tested by 1

TESTFunction · 0.64