News for hackers. Stuff that matters.
Re:GodBolt: Enter C, get Assembly by foldr on Thursday December 15, 2016 @11:38AM (#13185833)
>then associativity of integer multiplication, then some (probably builtin) rule that `n%n` is always 0.

Is this quite right? It's not true in general that (a * b) % c = a * (b % c). E.g. it's not true for 2,3,4. The relevant generalization is that (a * b) % b = 0, which has nothing to do with associativity.

Re:GodBolt: Enter C, get Assembly by widdma on Thursday December 15, 2016 @11:58AM (#13186023)
Maybe they meant distributes? Modulo (sort of) distributes over multiplication: (a * b) % c = ((a % c) * (b % c)) % c