So your code works efficiently with any modulus? (Even non-power of 2)?
-----Ursprüngliche Nachricht-----
Von: Hans Åberg via Std-Proposals <std-proposals@lists.isocpp.org>
Gesendet: Mi 14.01.2026 18:27
Betreff: Re: [std-proposals] Modular integers
An: David Brown <david.brown@hesbynett.no>;
CC: Hans Åberg <haberg_1@icloud.com>; std-proposals@lists.isocpp.org;
Modular integers are not bit integers if the modulus is not a power of 2.