[PATCH v1] libstdc++: More efficient weekday from year_month_day.
Jonathan Wakely
jwakely@redhat.com
Mon May 12 09:05:49 GMT 2025
On Sun, 11 May 2025 at 12:34, Cassio Neri <cassio.neri@gmail.com> wrote:
>
> Hi all,
>
> After reflecting on my previous message and Andrew's, I now believe this patch is not the best solution to optimise the day of the week. Instead, the optimisation for n % 7 should be done by the compiler depending on the platform.
>
> I'll open a missing optimisation opportunity bug report against GCC with my suggestions.
>
> Therefore, expecting a better solution from the compiler, I'd ask you to disregard this patch.
OK. Thank you both for working through this.
More information about the Libstdc++
mailing list