<?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: Quadruple precision for ifort (Mac) in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752483#M8490</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Yes, you can. Declare variables as REAL(16). For example:&lt;BR /&gt;&lt;BR /&gt;REAL(16) :: Q&lt;BR /&gt;&lt;BR /&gt;For constants, use a suffix _16 such as 1.0_16.&lt;BR /&gt;&lt;BR /&gt;Better, actually, would be to declare a named constant for the quad precision kind like this:&lt;BR /&gt;&lt;BR /&gt;INTEGER, PARAMETER :: QUAD = SELECTED_REAL_KIND(32)&lt;BR /&gt;&lt;BR /&gt;and then use QUAD instead of 16. For example:&lt;BR /&gt;&lt;BR /&gt;REAL(QUAD) :: Q&lt;BR /&gt;Q = 3.14_QUAD&lt;BR /&gt;&lt;BR /&gt;When calling intrinsic functions such as SQRT and SIN, just use the generic name and don't try to use a kind-specific name such as QSQRT.&lt;BR /&gt;&lt;BR /&gt;Please note that quad precision arithmetic is performed using software and not the CPU directly, so it will be much slower than single or double precision. You may want to use quad precision only in those parts of the algorithm that need the extra precision.&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Jan 2009 13:45:34 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2009-01-28T13:45:34Z</dc:date>
    <item>
      <title>Quadruple precision for ifort (Mac)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752482#M8489</link>
      <description>Could anybody tell me how I can use quadruple precision in fortran90/95 code?
&lt;DIV&gt;Is there also any special treatment such as 1.0D0 for double precision?&lt;BR /&gt;
&lt;DIV&gt;Also, if there are any special ways to compile the file, please let me know that too.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Please assume I am a very beginner of fortran90/95.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jan 2009 20:51:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752482#M8489</guid>
      <dc:creator>nalgenbottle</dc:creator>
      <dc:date>2009-01-27T20:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Quadruple precision for ifort (Mac)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752483#M8490</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Yes, you can. Declare variables as REAL(16). For example:&lt;BR /&gt;&lt;BR /&gt;REAL(16) :: Q&lt;BR /&gt;&lt;BR /&gt;For constants, use a suffix _16 such as 1.0_16.&lt;BR /&gt;&lt;BR /&gt;Better, actually, would be to declare a named constant for the quad precision kind like this:&lt;BR /&gt;&lt;BR /&gt;INTEGER, PARAMETER :: QUAD = SELECTED_REAL_KIND(32)&lt;BR /&gt;&lt;BR /&gt;and then use QUAD instead of 16. For example:&lt;BR /&gt;&lt;BR /&gt;REAL(QUAD) :: Q&lt;BR /&gt;Q = 3.14_QUAD&lt;BR /&gt;&lt;BR /&gt;When calling intrinsic functions such as SQRT and SIN, just use the generic name and don't try to use a kind-specific name such as QSQRT.&lt;BR /&gt;&lt;BR /&gt;Please note that quad precision arithmetic is performed using software and not the CPU directly, so it will be much slower than single or double precision. You may want to use quad precision only in those parts of the algorithm that need the extra precision.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2009 13:45:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752483#M8490</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-28T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Quadruple precision for ifort (Mac)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752484#M8491</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Thanks.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;SPAN style="font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;SPAN style="font-style: italic;"&gt;Let me ask another question.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;SPAN style="font-style: italic;"&gt;When I want to use some integers with quadruple precision value, how should I treat the integer?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;SPAN style="font-style: italic;"&gt;For instance, when I 'm using double precision, we can do...&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;SPAN style="font-style: italic;"&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco;"&gt;dx = &lt;SPAN style="color: #1c00cf;"&gt;2.0D0&lt;/SPAN&gt;/DBLE(n)&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco;"&gt;&lt;SPAN style="font-family: Monaco;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco;"&gt;Is there anything like"DBLE" for Quadruple precision?&lt;/P&gt;
&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2009 21:04:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752484#M8491</guid>
      <dc:creator>nalgenbottle</dc:creator>
      <dc:date>2009-01-28T21:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Quadruple precision for ifort (Mac)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752485#M8492</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Use REAL(N,QUAD) - this converts the argument N to a REAL of kind QUAD. (Assumes you have defined the PARAMETER constant QUAD.) &lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2009 22:28:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Quadruple-precision-for-ifort-Mac/m-p/752485#M8492</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-28T22:28:47Z</dc:date>
    </item>
  </channel>
</rss>

