From mboxrd@z Thu Jan 1 00:00:00 1970 From: dmr@plan9.bell-labs.com (Dennis Ritchie) Date: Sat, 11 Jan 2003 02:32:41 -0500 Subject: [TUHS] re: unsigned division in V7's C Message-ID: Helbig observed > while wondering how unsigned integer division is implemented in C > I found a bug in V7: a/b and a%b with b >= 2^15 does not give the expected > results, if a and b are unsigned int's. Does http://www.cs.bell-labs.com/who/dmr/odd.html#muldiv suffice to explain the behavior? Dennis