delorie.com/archives/browse.cgi | search |
From: | buers AT gmx DOT de (Dieter Buerssner) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: 387 page fault thing |
Date: | 22 Apr 2000 15:15:34 GMT |
Lines: | 18 |
Message-ID: | <8dsmn9.3vs4g2h.0@buerssner-17104.user.cis.dfn.de> |
References: | <3900B453 DOT F41CC292 AT hotmail DOT com> <200004220935 DOT FAA18388 AT indy DOT delorie DOT com> <3901BE44 DOT F90DB80F AT hotmail DOT com> |
NNTP-Posting-Host: | pec-3-86.tnt2.s2.uunet.de (149.225.3.86) |
Mime-Version: | 1.0 |
X-Trace: | fu-berlin.de 956416534 8720945 149.225.3.86 (16 [17104]) |
X-Posting-Agent: | Hamster/1.3.13.0 |
User-Agent: | Xnews/03.02.04 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Andrew Hakman wrote: >How would I convert 'double=double' to fixed point? This is not fixed point, but after rereading parts of the thread, the following might work for you: double src, dest; *(unsigned long long *)&dest = *(unsigned long long *)&src; or memcpy(&dest, &src, sizeof dest); The latter will probably be inlined, when compiled with -O. -- Regards, Dieter
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |