home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20278 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.2 KB

  1. 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
  2. From: proctori@p4.cs.man.ac.uk (Dave Proctor)
  3. Newsgroups: comp.lang.c
  4. Subject: Please help! Integer longer than 32 bits required.
  5. Summary: please god
  6. Keywords: help help help!
  7. Message-ID: <proctori.728064793@p4.cs.man.ac.uk>
  8. Date: 26 Jan 93 16:13:13 GMT
  9. Sender: news@cs.man.ac.uk
  10. Lines: 19
  11.  
  12. I dunno how common this question is, but it doesn't appear in the FAQ's
  13. so I thought no-one might have asked it, here goes.
  14.  
  15. Im doing a realtime 3d graphics program. To assist in the 'realtime-ness' of it
  16. I have implemented integer arithmetic throughout. This results in bit shifting to
  17. imply a decimal place in every multiplication. The problem with this is that I
  18. lose 14 bits of integer every time. Its not an accumulation problem, just I need
  19. a bigger quantity than 32 bits. 64 bits would be wonderful, but C doesn't seem
  20. to want me to have em....
  21.  
  22. Any answers would be gratefully received.
  23.  
  24.  - Dave.
  25.  
  26. -- 
  27.     /\    /\     __   __  /_ 
  28.    /  \  /  \   /  / / / /  / /
  29. __/    \/    \_/__/_/ /_/__/_/____________________________________________
  30. ____________________________/                           howeg@uk.ac.man.cs
  31.