From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115614,e489d6e4973d889f X-Google-Attributes: gid115614,public X-Google-Thread: 102b75,e489d6e4973d889f X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,e489d6e4973d889f X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-08-31 09:20:14 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!rover.ucs.ualberta.ca!news.ucalgary.ca!acs1.acs.ucalgary.ca!patchkov From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Newsgroups: comp.arch,comp.sys.dec,comp.unix.aix Subject: Re: Can POWER4, 5 etc continue where Alpha was stopped? Followup-To: comp.arch,comp.sys.dec,comp.unix.aix Date: 31 Aug 2001 16:09:10 GMT Organization: University of Calgary Message-ID: <9mocr6$ljk$1@nserve1.acs.ucalgary.ca> References: <88525dde.0108260914.7c63d8c3@posting.google.com> <9mgps0$12ee$1@ausnews.austin.ibm.com> <9mhbh0$pbq$1@ausnews.austin.ibm.com> <3B8C8AC4.59ED22CB@hda.hydro.com> <3B8F6243.F26ABBB0@hda.hydro.com> NNTP-Posting-Host: patchkov@acs1.acs.ucalgary.ca X-Trace: nserve1.acs.ucalgary.ca 999274150 22132 136.159.34.221 (31 Aug 2001 16:09:10 GMT) X-Complaints-To: news@ucalgary.ca NNTP-Posting-Date: 31 Aug 2001 16:09:10 GMT X-Newsreader: TIN [version 1.2 PL2] Xref: archiver1.google.com comp.arch:16087 comp.sys.dec:6863 comp.unix.aix:22910 Terje Mathisen (terje.mathisen@hda.hydro.com) wrote: : BTW, the same test on a single prec fp number is even easier, since it : just needs to verify that the fractional part of the mantissa is zero: : #define float_ispowerof2(n) (((*(t_uint32 *) &n) & 0x07ffffff) == 0) Ugh, doesn't it miss all denormalized powers of two? /Serge.P --- Home page: http://www.cobalt.chem.ucalgary.ca/ps/