Re: [Algorithms] Fixed point maths.
Brought to you by:
vexxed72
From: Rok E. <ro...@si...> - 2004-08-09 20:49:52
|
GCC seems to handle this correctly too on platforms that provide a 64bit = typedef. So technically portability doesn't need to be shot "completely" with = this :P ----- Original Message -----=20 From: Charles Bloom=20 To: gda...@li...=20 Sent: Tuesday, August 10, 2004 3:27 AM Subject: RE: [Algorithms] Fixed point maths. The modern Microsoft compiler handles this perfectly from C if you use = the=20 "uint64" type (unsigned __int64). Of course your portability is shot, = but=20 it's shot with assembly too. At 10:42 AM 8/9/2004 -0700, Tom Forsyth wrote: >Most 32-bit CPUs have a 32x32->32:32 instruction. Best thing is to = use that, >then shift down by 16 bits. = -------------------------------------------------------------------------= ------------------- Charles Bloom email "cb2" http://www.cbloom.com=20 ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes = on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source = Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ GDAlgorithms-list mailing list GDA...@li... https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D6188 |