Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

PXFUCOMPARE

POSIX Subroutine: Compares two unsigned integers.

Module

USE IFPOSIX

CALL PXFUCOMPARE (i1,i2,icmpr,idiff)

i1, i2

(Input) INTEGER(4). The two unsigned integers to compare.

icmpr

(Output) INTEGER(4). The result of the comparison; one of the following values:

-1

If i1 < i2

0

If i1 = i2

1

If i1 > i2

idiff

(Output) INTEGER(4). The absolute value of the difference.

The PXFUCOMPARE subroutine compares two unsigned integers and returns the absolute value of their difference into idiff.