[Offload][Omp] Do all geometry computations in 64-bit (#243507)
As discussed in #243452, currently, geometry computation is using a mix
of 32 and 64 bit integers, which require to cross the boundary multiple
times, making it confusing and error-prone.
This PR changes it so all the computation is in 64-bits after widening
some of the inputs. The result is also narrowed at the very end to
conform with the liboffload accepted sizes (and after checking we
wouldn't truncate the value).
Assisted by Claude.