Wireshark-dev: [Wireshark-dev] 64bit math
From: Erwin Rol <mailinglists@xxxxxxxxxxxx>
Date: Mon, 14 Aug 2006 20:24:14 +0200
Hey all,

If i remember right 64bit is a bit problematic due to portability, so i have a question, how do i do the following in a "correct" way. For mpeg transport stream dissecting i need to get a a 42bit value from 48bits, the first 33bit are the "base" than 6 bits reserved and than 9 bits "extension". The value to display is "base * 300 + extension". So what is the best way to get those 42 bits from those 6 bytes and calculate th value ?

- Erwin