Re: [CHALLENGE] finding rightmost zero bit



James Van Buskirk wrote:

(snip of assembly language solution to a Fortran challenge)

Your test program doesn't provide for an output so that
correctness can be verified.

It's unusual for a Fortran program to count the least significant
bit as bit 1.  The model for integer data considers it to be
bit 0.

I would say that with the traditional 1 origin arrays that it makes some sense to use 1 for the LSB. In mine I return 0 for the case of no zero bits.

-- glen

.



Relevant Pages

  • Corrective interpretation of real numbers
    ... does never permit delta to be zero, I am fully aware of the fact that ... with mathematics based on Weierstrass’s notion as usual: ... Imagine delta equal to zero: Now, any single number x does not matter ...
    (sci.math)
  • RE: VFP 9: Making transform() Drop Decimal 0s
    ... Numeric (includes Double, Float, or Integer data types): ... value is less than one but greater than negative one, zero is included before ... Transform() to the worse! ...
    (microsoft.public.fox.programmer.exchange)