Streamlining of CUDA arithmetic