Add getSizeInBits function to the APFloat class
The newly added function returns the size of the specified floating point semantics in bits.
Differential D8413
Add getSizeInBits function to the APFloat class tberghammer on Mar 18 2015, 6:51 AM. Authored by
Details Add getSizeInBits function to the APFloat class The newly added function returns the size of the specified floating point semantics in bits.
Diff Detail
Event TimelineComment Actions This is wrong for x87 long doubles (implicit '1' always present, so the count is off by one) and PPC double doubles (weird 128 bit format). It's probably best to just hardcode the value for all supported fp formats.
Comment Actions I think I agree with Hal and this should be in the semantic struct. Open to other suggestions though. Comment Actions LGTM.
|