This new method uses binary operations instead of swapping. Adresses paraview/paraview#20180 (closed)