Re: Add a wi::to_wide helper function

2016-05-02 Thread Richard Biener
On Fri, Apr 29, 2016 at 2:32 PM, Richard Sandiford wrote: > As Richard says, we ought to have a convenient way of converting > an INTEGER_CST to a wide_int of a particular precision without > having to extract the sign of the INTEGER_CST's type each time. > This patch adds a wi::to_wide helper for

Add a wi::to_wide helper function

2016-04-29 Thread Richard Sandiford
As Richard says, we ought to have a convenient way of converting an INTEGER_CST to a wide_int of a particular precision without having to extract the sign of the INTEGER_CST's type each time. This patch adds a wi::to_wide helper for that, alongside the existing wi::to_offset and wi::to_widest. Tes