home *** CD-ROM | disk | FTP | other *** search
- Path: news.central.ntua.gr!not-for-mail
- From: hnick@central.ntua.gr (Nick C. Fotis)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Fastest datatype?
- Date: 13 Mar 1996 03:33:39 GMT
- Organization: National Technical University of Athens, Greece
- Message-ID: <4i5fmj$t04@zeus.central.ntua.gr>
- References: <83.6643T702T1298@academy.bastad.se>
- NNTP-Posting-Host: gate2-zeus.central.ntua.gr
- X-Newsreader: NN version 6.5.0 #1 (NOV)
-
- sten@academy.bastad.se (Sten Jansson) writes:
-
- >I've heard that float is faster than integer. Is that true? I've got
- >no FPU.
-
- Is this the most misleading subject or is it just me? :-)
- I thought I was about to read about some fancy jpg, gif datatype ;-)
-
- Anyways, since you got me here, I might as well give you an answer (Nice trick,
- dont do it again :P)
-
- On machines with not FPU integers are faster than float. On machines with FPU
- float comes close, but I think integers are still faster.
-
- BUT, when you deal with programs that just must do their computations in float
- (such as ray-tracers, fractals) then FPU's float arithmetic is faster than
- "CPU's simulated float arithmetic" (Which is basically the thing I think you
- wanted to ask).
-
-
- >Sten
-
- ..."Faster datatype"! Yeah, right :-)
- Cheers,
- Alex
-
-
- --
-
- +----------------------------------------------------------------------------+
- | Alkinoos Alexandros Argiropoulos A1200, '030@40, 6MB Fast |
- | Athens, Greece "AAA is not a chipset...It's my name" |
- +----------------------------------------------------------------------------+
-