int clerp_mod (int X, int W) { if (X > 0) return X % W; return W - (-X % W); }
-
-
@increpare whoah hahaha the problem is in my mind x % w is ambiguous since I feel like it should just be what I want in the first place :) -
@psysal@increpare I don't actually know what this is supposed to do...but this looks like it's asking for modulo 0 problems - 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.