Please explain what you mean with bit-blit. We have mpn_lshift and mpn_rshift already in GMP, and they are carefully optimized for all relevant processors. They implement what I mean with bit-blit. In what way is your code different from mpn_lshift and mpn_rshift? -- Torbjörn