home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!agate!doc.ic.ac.uk!warwick!uknet!mucs!p4.cs.man.ac.uk!proctori
- From: proctori@p4.cs.man.ac.uk (Dave Proctor)
- Newsgroups: comp.lang.c
- Subject: Please help! Integer longer than 32 bits required.
- Summary: please god
- Keywords: help help help!
- Message-ID: <proctori.728064793@p4.cs.man.ac.uk>
- Date: 26 Jan 93 16:13:13 GMT
- Sender: news@cs.man.ac.uk
- Lines: 19
-
- I dunno how common this question is, but it doesn't appear in the FAQ's
- so I thought no-one might have asked it, here goes.
-
- Im doing a realtime 3d graphics program. To assist in the 'realtime-ness' of it
- I have implemented integer arithmetic throughout. This results in bit shifting to
- imply a decimal place in every multiplication. The problem with this is that I
- lose 14 bits of integer every time. Its not an accumulation problem, just I need
- a bigger quantity than 32 bits. 64 bits would be wonderful, but C doesn't seem
- to want me to have em....
-
- Any answers would be gratefully received.
-
- - Dave.
-
- --
- /\ /\ __ __ /_
- / \ / \ / / / / / / /
- __/ \/ \_/__/_/ /_/__/_/____________________________________________
- ____________________________/ howeg@uk.ac.man.cs
-