(j3.2006) BEQ, BNE?

Van Snyder Van.Snyder
Tue Jan 29 21:22:07 EST 2013


We did BLT, BLE, etc., but why not BEQ and BNE?

One might be tempted to use == and /=, but these are required to fail
for +/- zero on ones-complement and sign-magnitude machines because
Fortran doesn't distinguish +0 from -0 for integers.

Should we add BEQ and BNE, or suggest that users write something like

  if ( BLE(I,J) .and. BLE(J,I) ) then ! I and J are equal bit strings
    ....
  end if

or is there another way to do it that I've overlooked?





More information about the J3 mailing list