www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/26/01:10:15

Date: Fri, 25 Nov 1994 23:27:50 -0500 (EST)
From: Kimberley Burchett <OKRA AT max DOT tiac DOT net>
Subject: funny division
To: DJGPP Mailing List <djgpp AT sun DOT soe DOT clarkson DOT edu>

  Thanks to all the people who've answered me so far.  The problem was I
was dividing a signed number by an unsigned number.  It promoted the
signed one to unsigned - making it MUCH larger.  I was using unsigned for
the divisor since I knew it would never be negative and I once had a case
where using unsigned rather than signed sped things up about 20%.  (of
course, this was in an inner loop, but it's a simple habit that I picked
up).
							Kim


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019