> > As far as I know all compilers the kernel can use will do an arithmetic > > right shift if the data type is signed. > > Where is your information from? Just empirically :) > I actually had some misbehaviour that > was fixed after I introduced this. I'll check the assembly gcc produces > to shed some light on this. Ok. I like the macro that stefano introduced better than inlining this code and I can live with that. I know gcc can emit arithmetic right shifts. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part