C (144/414)

From:Alastair M. Robinson
Date:09 Jun 2000 at 01:45:07
Subject:Re: GfxBase->current_tot_cclks and a new request...

Hi Tim,

> While we are on this subject what is the explaination of the wacky result my
> machine returned from the last prog.

Oh that...

Well, my program did something like 100000000/(28*cclk), but CGfx3 sets
current_tot_cclks to zero, so the expression above on most machines causes a
division-by-zero error.

When the Doom ports first came out, there were areas in the game where
firing (or even looking) straight down an axis could cause a
division-by-zero, so someone wrote a patch to trap the div-by-zero exception
and return machine infinity instead of causing a crash.

I suspect you've still got something like this installed, because the wacky
value returned was about 4 billion - or precisely 2^32-1 - machine infinity!

Could just be CyberPatcher/OxyPatcher or something similar - I don't know
exactly which programs patch what...

All the best,



Alastair M. Robinson, email:blackfive@fakenhamweb.co.uk
Amiga 4000/030, 18Meg RAM, 4.3Gig HD, Mustek ScanExpress 6000SP
C, Assembler (68k, PIC16C84, ATMEL AVR), PostScript,
ARexx, AMOSPro(!), AmigaDOS

For Sale: Eight puppies from a German Sheppard and an Alaskan Hussy.

------------------------------------------------------------------------
Would you like to save big on your phone bill -- and keep on saving
more each month? Join beMANY! Our huge buying group gives you Long Distance
rates which fall monthly, plus an extra $60 in FREE calls!
http://click.egroups.com/1/2567/1/_/451227/_/960508264/
------------------------------------------------------------------------