Article View: borland.public.cppbuilder.nativeapi
Article #16177Re: MCW_EM How to turn back on floating point exceptions?
From: Bob Gonder
Date: Thu, 29 May 2003 18:21
Date: Thu, 29 May 2003 18:21
14 lines
1550 bytes
1550 bytes
Jeff Kish <jeff.kish@mro.com> wrote: >Greetings. > >I have seen posts saying you can use _control87(MCW_EM,MCW_EM); to >turn off floating point exceptions. What do you do to turn them back >on? I looked at float.h and it is not obvious to me. The help on _control87() tells all.... int OriginalValue = _control87( 0, 0 ); _control87( MCW_EM, MCW_EM ); ...later... _control87( OriginalValue, (unsigned int)-1 );
Technical Details
Message-ID:
<smjcdvcb32c3m6pi94o5io6034ei58dulu@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<mm7cdvge1ie595jdoknie2jhlleb9tdps8@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,21e046e72e543e22 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-29 11:47:36 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: MCW_EM How to turn back on floating point exceptions? Date: Thu, 29 May 2003 11:21:37 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <smjcdvcb32c3m6pi94o5io6034ei58dulu@4ax.com> References: <mm7cdvge1ie595jdoknie2jhlleb9tdps8@4ax.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.58 X-Trace: newsgroups.borland.com 1054232451 67.31.164.58 (29 May 2003 11:20:51 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail