Skip to content
Snippets Groups Projects
Commit a2aea8f0 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Replace arithmetic.

* The modulo result is available on most architectures in a register
  anyway.
parent d0b7c3a8
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -1341,9 +1341,9 @@ vlistEncodeXyz(const int dimorder[3])
static void
vlistDecodeXyz(int xyz, int outDimorder[3])
{
outDimorder[0] = xyz / 100, xyz -= outDimorder[0] * 100;
outDimorder[1] = xyz / 10, xyz -= outDimorder[1] * 10;
outDimorder[2] = xyz;
outDimorder[0] = xyz / 100, xyz = xyz % 100;
outDimorder[1] = xyz / 10;
outDimorder[2] = xyz % 10;
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment