How about ((mp_limb_t)1) << (32 % GMP_NUMB_BITS) ?