[typed arrays] coding - unify multiplier calculation