<?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 I had thought of transfer but in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166735#M144581</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I had thought of transfer but ZEXT works and is neater, thanks&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 06:27:49 GMT</pubDate>
    <dc:creator>steve_o_</dc:creator>
    <dc:date>2018-04-10T06:27:49Z</dc:date>
    <item>
      <title>How to write C_INT32_T value in fortran?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166732#M144578</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I'm writing a hashing function using unsigned 32 bit integers, however I'm not sure if it can be written/printed? Haven't seen any documentation&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;What's the best method to write/print a c_int32_t integer in fortran ? In C printf would use&amp;nbsp;PRIu32&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 08:43:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166732#M144578</guid>
      <dc:creator>steve_o_</dc:creator>
      <dc:date>2018-04-09T08:43:38Z</dc:date>
    </item>
    <item>
      <title>I would say: copy the bits</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166733#M144579</link>
      <description>&lt;P&gt;I would say: copy the bits into a 64-bits integer and print that. I have not tested it but try:&lt;/P&gt;

&lt;P&gt;i64 = transfer( [0, unsigned_int32], i64 )&lt;/P&gt;

&lt;P&gt;(or the other way around?) Or use the bit manipulation routines.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 10:02:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166733#M144579</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2018-04-09T10:02:57Z</dc:date>
    </item>
    <item>
      <title>In Intel Fortran, you could</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166734#M144580</link>
      <description>&lt;P&gt;In Intel Fortran, you could use ZEXT(val,C_INT64_T). That is an extension, though widely implemented. In standard Fortran Arjen's suggestion is clever and workable. Unfortunately the various bit intrinsics, such as IBITS, don't allow changing the kind of the result. You could do something like IAND(INT(val,C_INT64_T),Z'00000000FFFFFFFF'), but that looks awkward.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;use ISO_C_BINDING
integer(4) val
val = -214748364
print ('(Z8.8)'), IAND(INT(val,C_INT64_T),Z'00000000FFFFFFFF')
end&lt;/PRE&gt;

&lt;PRE class="brush:plain;"&gt;D:\Projects&amp;gt;ifort /stand t.f90
Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on
 Intel(R) 64, Version 18.0.2.185 Build 20180210
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

Microsoft (R) Incremental Linker Version 14.13.26129.0
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:t.exe
-subsystem:console
t.obj

D:\Projects&amp;gt;t.exe
F3333334&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:05:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166734#M144580</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2018-04-09T14:05:55Z</dc:date>
    </item>
    <item>
      <title>I had thought of transfer but</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166735#M144581</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I had thought of transfer but ZEXT works and is neater, thanks&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:27:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-write-C-INT32-T-value-in-fortran/m-p/1166735#M144581</guid>
      <dc:creator>steve_o_</dc:creator>
      <dc:date>2018-04-10T06:27:49Z</dc:date>
    </item>
  </channel>
</rss>

