Re: [PATCH] Refactor wi::bswap as a function (instead of a method).

2023-05-30 Thread Richard Sandiford via Gcc-patches
"Roger Sayle" writes: > This patch implements Richard Sandiford's suggestion from > https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618215.html > that wi::bswap (and a new wi::bitreverse) should be functions, > and ideally only accessors are member functions. This patch > implements the first

[PATCH] Refactor wi::bswap as a function (instead of a method).

2023-05-28 Thread Roger Sayle
This patch implements Richard Sandiford's suggestion from https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618215.html that wi::bswap (and a new wi::bitreverse) should be functions, and ideally only accessors are member functions. This patch implements the first step, moving/refactoring wi::bsw