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=0.7 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, MSGID_RANDY autolearn=no 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 13:22:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: mark_lundquist@my-deja.com Newsgroups: comp.lang.ada Subject: Re: bitstreams Date: Mon, 15 Jan 2001 21:15:02 GMT Organization: Deja.com Message-ID: <93vp8e$48s$1@nnrp1.deja.com> References: <93se2v$nen$1@eol.dd.chalmers.se> <93vik8$u08$1@nnrp1.deja.com> NNTP-Posting-Host: 130.213.200.127 X-Article-Creation-Date: Mon Jan 15 21:15:02 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) X-Http-Proxy: 1.1 x56.deja.com:80 (Squid/1.1.22) for client 130.213.200.127 X-MyDeja-Info: XMYDJUIDmark_lundquist Xref: supernews.google.com comp.lang.ada:4028 Date: 2001-01-15T21:15:02+00:00 List-Id: Bah, of course, my bad... I guess I blew a brain-fuse there while I was writing that... Thx for the correction, -- mark In article , "Pat Rogers" wrote: > 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]) > > Sent via Deja.com http://www.deja.com/