<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Turn Off Floating-Point Exception Interruption in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-turn-off-floating-point-exception-interruption/m-p/4950973#M33232</link>
    <description>Made two submissions.  Close this one.</description>
    <pubDate>Mon, 09 Jan 2006 11:46:15 GMT</pubDate>
    <dc:creator>Ray Lu</dc:creator>
    <dc:date>2006-01-09T11:46:15Z</dc:date>
    <item>
      <title>How to Turn Off Floating-Point Exception Interruption</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-turn-off-floating-point-exception-interruption/m-p/4950972#M33231</link>
      <description>If I have overflowed floating-point values in my program, the program is interrupted and floating-point value exception message is returned.  Is there any way to turn off this exception handling, like a compiler option or system function?  &lt;BR /&gt;&lt;BR /&gt;I'm running on a OpenVMS Alpha system.  I mainly care about VAX floating-point types.  I've tried cc option /PDSC_MASK=SILENT but saw no difference.  I believe there's no such systerm functions as feholdexcept() on Unix to turn off exception complaint.  My short test program is attached below.  &lt;BR /&gt;&lt;BR /&gt;Thanks for helping me.&lt;BR /&gt;&lt;BR /&gt;Ray&lt;BR /&gt;&lt;BR /&gt;------------------&lt;BR /&gt;#include&lt;STDIO.H&gt;&lt;BR /&gt;#include&lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;        int i, j;&lt;BR /&gt;        double  d;&lt;BR /&gt;        unsigned char *dp = (unsigned char*)&amp;amp;d;&lt;BR /&gt;        float   f;&lt;BR /&gt;&lt;BR /&gt;        for (i=0; i&amp;lt;16; i++) {&lt;BR /&gt;            for (j=0; j&lt;SIZEOF&gt;&lt;/SIZEOF&gt;                dp[j] = rand();&lt;BR /&gt;            f = (float)d;&lt;BR /&gt;            printf("f=%g\n", (float)f);&lt;BR /&gt;        }&lt;BR /&gt;        &lt;BR /&gt;        return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 09 Jan 2006 11:07:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-turn-off-floating-point-exception-interruption/m-p/4950972#M33231</guid>
      <dc:creator>Ray Lu</dc:creator>
      <dc:date>2006-01-09T11:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Turn Off Floating-Point Exception Interruption</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-turn-off-floating-point-exception-interruption/m-p/4950973#M33232</link>
      <description>Made two submissions.  Close this one.</description>
      <pubDate>Mon, 09 Jan 2006 11:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-turn-off-floating-point-exception-interruption/m-p/4950973#M33232</guid>
      <dc:creator>Ray Lu</dc:creator>
      <dc:date>2006-01-09T11:46:15Z</dc:date>
    </item>
  </channel>
</rss>

