Macaulay2 Engine
Loading...
Searching...
No Matches

◆ MO_unpack4()

void MO_unpack4 ( int nvars,
const int * slots,
int * expon )
static

Definition at line 379 of file imonorder.cpp.

380{
381 int32_t i;
382 if (nvars == 0) return;
383 while (1)
384 {
385 i = *slots++;
386 *expon++ = (i >> 24);
387 if (--nvars == 0) break;
388 *expon++ = (i >> 16) & 0x7f;
389 if (--nvars == 0) break;
390 *expon++ = (i >> 8) & 0x7f;
391 if (--nvars == 0) break;
392 *expon++ = i & 0x7f;
393 if (--nvars == 0) break;
394 }
395}

References mon_part::nvars.

Referenced by monomialOrderDecodeToActualExponents().