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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,435e65f4acf8bd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-15 12:44:07 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!newsfeed.mathworks.com!cyclone.swbell.net!nnrp1.sbc.net.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <93se2v$nen$1@eol.dd.chalmers.se> <93vik8$u08$1@nnrp1.deja.com> Subject: Re: bitstreams X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Mon, 15 Jan 2001 14:43:29 -0600 NNTP-Posting-Host: 208.191.184.67 X-Complaints-To: abuse@pacbell.net X-Trace: nnrp1.sbc.net 979591411 208.191.184.67 (Mon, 15 Jan 2001 14:43:31 CST) NNTP-Posting-Date: Mon, 15 Jan 2001 14:43:31 CST Organization: SBC Internet Services Xref: supernews.google.com comp.lang.ada:4023 Date: 2001-01-15T14:43:29-06:00 List-Id: Only for the modular (i.e., unsigned) types, not the signed types. See B.2{9} wrote in message news:93vik8$u08$1@nnrp1.deja.com... > In article <93se2v$nen$1@eol.dd.chalmers.se>, > "Daniel Nilsson" wrote: > > 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) > > Note that shift and rotate functions are primitive operations of the > Signed_ and Unsigned_ families of types (RM [B.2])