[theora-dev] bitpack.c odditiy

Nils Pipenbrinck n.pipenbrinck at cubic.org
Tue Dec 16 09:56:50 PST 2008


While browsing the code I came across line 83 bitpack.c:

  *_ret=((ret&0xFFFFFFFFUL)>>(m>>1))>>(m+1>>1);

Is there any reason why this is so convoluted? Maybe endianess or 64 bit 
issues? If I'm not mistaken it does exactly the the same as:

  *_ret = ret >> m;

Cheers,
  Nils



More information about the theora-dev mailing list