c
if (((sp->v_sampling * DCTSIZE) != 0) && 
    ((td->td_tilelength % (sp->v_sampling * DCTSIZE)) != 0)) {
    // ... rest of the code
}
