<?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 FP Exception Handler in CVF in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/FP-Exception-Handler-in-CVF/m-p/969138#M23523</link>
    <description>I have taken the example in the documentation and changed the RAISEQQ call into a real divide by zero, but it does not enter the h_fpe code when I enter 0.0 for x. &lt;BR /&gt; &lt;BR /&gt;Can you point me at what I'm doing wrong? &lt;BR /&gt; &lt;BR /&gt;Adrian Ferramosca &lt;BR /&gt;Baker Jardine &lt;BR /&gt; &lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;!  This program shows a signal handler for &lt;BR /&gt; !  SIG$FPE &lt;BR /&gt; USE DFLIB &lt;BR /&gt; INTERFACE &lt;BR /&gt;   FUNCTION h_fpe (signum, except) &lt;BR /&gt;     !DEC$ATTRIBUTES C :: h_fpe &lt;BR /&gt;     INTEGER(4) h_fpe &lt;BR /&gt;     INTEGER(2) signum, except &lt;BR /&gt;   END FUNCTION &lt;BR /&gt; END INTERFACE &lt;BR /&gt; &lt;BR /&gt; INTEGER(2) i2ret &lt;BR /&gt; INTEGER(4) i4ret &lt;BR /&gt; real(8) x &lt;BR /&gt; real(8) y &lt;BR /&gt; &lt;BR /&gt; i4ret = SIGNALQQ(SIG$FPE, h_fpe) &lt;BR /&gt; WRITE(6,*) 'Set signal handler. Return = ', i4ret &lt;BR /&gt; &lt;BR /&gt; read(5,*) x &lt;BR /&gt; y = 1.0d0 / x &lt;BR /&gt; y = dlog(x) &lt;BR /&gt;! i2ret = RAISEQQ(SIG$FPE) &lt;BR /&gt;! WRITE(6,*) 'Raised signal. Return = ', i2ret &lt;BR /&gt; END &lt;BR /&gt; ! &lt;BR /&gt; !      Signal handler routine &lt;BR /&gt; ! &lt;BR /&gt; INTEGER(4) FUNCTION h_fpe (signum,except) &lt;BR /&gt;   !DEC$ATTRIBUTES C :: h_fpe &lt;BR /&gt;   INTEGER(2) signum, except &lt;BR /&gt;   WRITE(6,*) 'In signal handler for SIG$fpe' &lt;BR /&gt;   WRITE(6,*) 'signum = ', signum &lt;BR /&gt;   WRITE(6,*) 'signum = ', except &lt;BR /&gt;   h_fpe = 1 &lt;BR /&gt; END</description>
    <pubDate>Thu, 11 Oct 2001 03:33:06 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-10-11T03:33:06Z</dc:date>
    <item>
      <title>FP Exception Handler in CVF</title>
      <link>https://community.intel.com/t5/Software-Archive/FP-Exception-Handler-in-CVF/m-p/969138#M23523</link>
      <description>I have taken the example in the documentation and changed the RAISEQQ call into a real divide by zero, but it does not enter the h_fpe code when I enter 0.0 for x. &lt;BR /&gt; &lt;BR /&gt;Can you point me at what I'm doing wrong? &lt;BR /&gt; &lt;BR /&gt;Adrian Ferramosca &lt;BR /&gt;Baker Jardine &lt;BR /&gt; &lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;!  This program shows a signal handler for &lt;BR /&gt; !  SIG$FPE &lt;BR /&gt; USE DFLIB &lt;BR /&gt; INTERFACE &lt;BR /&gt;   FUNCTION h_fpe (signum, except) &lt;BR /&gt;     !DEC$ATTRIBUTES C :: h_fpe &lt;BR /&gt;     INTEGER(4) h_fpe &lt;BR /&gt;     INTEGER(2) signum, except &lt;BR /&gt;   END FUNCTION &lt;BR /&gt; END INTERFACE &lt;BR /&gt; &lt;BR /&gt; INTEGER(2) i2ret &lt;BR /&gt; INTEGER(4) i4ret &lt;BR /&gt; real(8) x &lt;BR /&gt; real(8) y &lt;BR /&gt; &lt;BR /&gt; i4ret = SIGNALQQ(SIG$FPE, h_fpe) &lt;BR /&gt; WRITE(6,*) 'Set signal handler. Return = ', i4ret &lt;BR /&gt; &lt;BR /&gt; read(5,*) x &lt;BR /&gt; y = 1.0d0 / x &lt;BR /&gt; y = dlog(x) &lt;BR /&gt;! i2ret = RAISEQQ(SIG$FPE) &lt;BR /&gt;! WRITE(6,*) 'Raised signal. Return = ', i2ret &lt;BR /&gt; END &lt;BR /&gt; ! &lt;BR /&gt; !      Signal handler routine &lt;BR /&gt; ! &lt;BR /&gt; INTEGER(4) FUNCTION h_fpe (signum,except) &lt;BR /&gt;   !DEC$ATTRIBUTES C :: h_fpe &lt;BR /&gt;   INTEGER(2) signum, except &lt;BR /&gt;   WRITE(6,*) 'In signal handler for SIG$fpe' &lt;BR /&gt;   WRITE(6,*) 'signum = ', signum &lt;BR /&gt;   WRITE(6,*) 'signum = ', except &lt;BR /&gt;   h_fpe = 1 &lt;BR /&gt; END</description>
      <pubDate>Thu, 11 Oct 2001 03:33:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/FP-Exception-Handler-in-CVF/m-p/969138#M23523</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-11T03:33:06Z</dc:date>
    </item>
  </channel>
</rss>

