Re: [PATCH] wide-int, v2: Fix estimation of buffer sizes for wide_int printing [PR111800]

2023-10-14 Thread Richard Biener
> Am 14.10.2023 um 11:50 schrieb Jakub Jelinek : > > Hi! > >> On Sat, Oct 14, 2023 at 10:41:28AM +0200, Richard Biener wrote: >> Can we somehow abstract this common pattern? > > So like this? With room for the future tweaks like printing decimal > instead of hex numbers by print_dec*,

[PATCH] wide-int, v2: Fix estimation of buffer sizes for wide_int printing [PR111800]

2023-10-14 Thread Jakub Jelinek
Hi! On Sat, Oct 14, 2023 at 10:41:28AM +0200, Richard Biener wrote: > Can we somehow abstract this common pattern? So like this? With room for the future tweaks like printing decimal instead of hex numbers by print_dec*, where we'd only need to adjust the inlines. The XALLOCAVEC call is left