[Bug tree-optimization/86136] Modular multiplication optimization

mcccs at gmx dot com gcc-bugzilla@gcc.gnu.org
Sun Jun 24 11:22:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86136

--- Comment #3 from MCCCS <mcccs at gmx dot com> ---
What about

unsigned int k (unsigned int a) {
    if (a > 5) {
        __builtin_unreachable();
    }
    return (a * 83) % 5;
}


More information about the Gcc-bugs mailing list