From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,435e65f4acf8bd,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-14 06:50:20 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!dd.chalmers.se!not-for-mail From: "Daniel Nilsson" Newsgroups: comp.lang.ada Subject: bitstreams Date: Sun, 14 Jan 2001 15:47:45 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: <93se2v$nen$1@eol.dd.chalmers.se> NNTP-Posting-Host: e9danne.hemmet.chalmers.se X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Xref: supernews.google.com comp.lang.ada:3998 Date: 2001-01-14T15:47:45+01:00 List-Id: Hi. In my mp3 decoder I will have to search for bit-patterns in a buffer of bytes, how is this best done, and How can I "shift" in a sequence of bits into a byte, or word efficiently? (I want ex. take 5 bits from a buffer and put them rightadjusted in a unsigned_32) /Daniel Nilsson