Hacker News new | ask | show | jobs
by chongli 1173 days ago
Why not just write:

    bool aplusb_sqr(int* c, int a, int b) {
        return c && ckd_add(c, a, b) && ckd_mul(c, *c, *c);
    }
1 comments

Obviously you could do that in this case, I just wanted to come up with a complicated formula.