The functions in MathExtras.h uses a safer memcpy instead of going through a union.
Details
Details
Diff Detail
Diff Detail
Differential D33116
[APInt] Use MathExtras.h BitsToFloat/Double and Float/DoubleToBits instead of type punning through a union ClosedPublic Authored by craig.topper on May 11 2017, 11:33 PM.
Details Summary The functions in MathExtras.h uses a safer memcpy instead of going through a union.
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 12 2017, 3:29 AM Closed by commit rL302916: [APInt] Use MathExtras.h BitsToFloat/Double and Float/DoubleToBits instead of… (authored by ctopper). · Explain WhyMay 12 2017, 9:41 AM This revision was automatically updated to reflect the committed changes.
Diff 98724 include/llvm/ADT/APInt.h
|