ftp.delorie.com/archives/browse.cgi | search |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |