/* Delete any leading 0's (and allow for 0).  */
static bigint *ICACHE_FLASH_ATTR trim(bigint *bi)
/* Delete any leading 0's (and allow for 0).  */
static bigint *ICACHE_FLASH_ATTR trim(bigint *bi)
{
    check(bi);
    while (bi->comps[bi->size-1] == 0 && bi->size > 1)
    {
        bi->size--;
    }
    return bi;
}