Next | The Identity Function | 20 |
A(I) === *(address(A)+(I-1) x SIZE)
Thus:
address(A(I)) = address(A) + (I-1) x SIZE
address(A(I)) - address(A) = (I-1) x SIZE
(address(A(I)) - address(A)) / SIZE = (I-1)
1 + (address(A(I)) - address(A)) / SIZE = I
Next | Copyright © 2001 M. J. Dominus |