#include "game_types.h"

/* Bignum_ShiftRight @ 0x0801CB70 (real 24B) -- unlinks one digit entry back into its bucket. Mirrors src/matched/Bignum_ShiftRight.c. */
/* When q is non-NULL, moves the head entry of bucket (q[1]*4 + p[19]) into
   q[0] and links q in its place. */
void Bignum_ShiftRight(int *p, int *q)
{
    int *e;
    if (q == 0)
        return;
    e = (int *)(q[1] * 4 + p[19]);
    q[0] = e[0];
    e[0] = (int)q;
}
