adg: reduce complexity of REMAPPED macro in AdgPath
adg: reduce complexity of REMAPPED macro in AdgPath

Cast and reordering of operations in order to minimize the probability
of an overflow exception.

ntd/adg,ntd/adg