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

◆ MO_unpack2()

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

Definition at line 397 of file imonorder.cpp.

398{
399 int32_t i;
400 if (nvars == 0) return;
401 while (1)
402 {
403 i = *slots++;
404 *expon++ = i >> 16;
405 if (--nvars == 0) break;
406 *expon++ = i & 0x7fff;
407 if (--nvars == 0) break;
408 }
409}

References mon_part::nvars.

Referenced by monomialOrderDecodeToActualExponents().