buffer: added 40bit operators

All test passing. Cheers.