Deutsch English Français Italiano |
<20240505110339.00003dfc@yahoo.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.arch Subject: Re: Byte Addressability And Beyond Date: Sun, 5 May 2024 11:03:39 +0300 Organization: A noiseless patient Spider Lines: 44 Message-ID: <20240505110339.00003dfc@yahoo.com> References: <v0s17o$2okf4$2@dont-email.me> <v144s1$1r3q$1@gal.iecc.com> <v1491h$10fkm$1@dont-email.me> <v14lfr$12s06$3@dont-email.me> <v162fa$1623$2@gal.iecc.com> <20240504225619.000034fe@yahoo.com> <3890cc296996acdb2021a7adcb6f7d21@www.novabbs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Sun, 05 May 2024 10:03:34 +0200 (CEST) Injection-Info: dont-email.me; posting-host="21af9704c55270fa9c775b4b6edb77e1"; logging-data="1849344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6XBDd8Khr6PoZ+3l4Q1frVgeh89EwCU8=" Cancel-Lock: sha1:Cd4lp7BiAV86R7GFtlsru3lGHMo= X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32) Bytes: 2614 On Sat, 4 May 2024 21:08:19 +0000 mitchalsup@aol.com (MitchAlsup1) wrote: > Michael S wrote: > > > On Sat, 4 May 2024 19:31:54 -0000 (UTC) > > John Levine <johnl@taugh.com> wrote: > > >> According to Lawrence D'Oliveiro <ldo@nz.invalid>: > >> >On Fri, 3 May 2024 22:11:44 -0500, BGB wrote: > >> > > >> >> Not a huge use-case in graphics, as noted, in most cases this is > >> >> done with 16 or 32 bit pixels; and bit-plane graphics are long > >> >> since dead. > >> > > >> >What happens if we go beyond 32 bits? For example, hardware might > >> >support 10 bits per pixel component. > >> > >> I dunno about you but I would align the elements on two-byte > >> boundaries and only store the high 10 of the 16 bits. It's not like > >> we're short of address space, and it's a lot quicker to multiply > >> and divide by 2 or 16 than by 10. > >> > >> > >> > > > I agree about preferable solution and simplicity, but not about last > > part. > > > Multiplication by 10 is only very slightly slower than > > multiplication by 2 or 16 and the difference shouldn't be noticable > > by comparison with other things that we want to do with pixel. > > Multiplication by 10 used to index an array is not slower than a > multipication > by 16 (when the ISA is not brain dead):: > > LEA Ri,[Ri,Ri<<3] > LD Rd,[Rp,Ri] > Are you sure? To me, it looks like 9 rather than 10.