The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] re: unsigned division in V7's C
@ 2003-01-11  7:32 Dennis Ritchie
  0 siblings, 0 replies; only message in thread
From: Dennis Ritchie @ 2003-01-11  7:32 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-11  7:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-11  7:32 [TUHS] re: unsigned division in V7's C Dennis Ritchie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).