Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

unsigned integers under FORTRAN

gernotebel
Beginner
458 Views
I want to operate on unsigned integers (8bit, 16bit, coming from C++) under Fortran subroutines .
However Fortran doesn't know these kinds of data-types.
Did you encounter this problem and did you find a solution/circumvention?
Thank you.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
458 Views
Use ZEXT to convert to 32-bit, do your arithmetic, use IBITS to convert back.

Steve
0 Kudos
Reply