Deutsch English Français Italiano |
<v1es3t$3o1r8$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.arch Subject: Re: Byte Addressability And Beyond Date: Wed, 8 May 2024 03:38:37 -0000 (UTC) Organization: A noiseless patient Spider Lines: 20 Message-ID: <v1es3t$3o1r8$2@dont-email.me> References: <v0s17o$2okf4$2@dont-email.me> <glff3j9i1f0h52r2vvpk2psek0gglvr769@4ax.com> <v19fk8$2asct$4@dont-email.me> <d8vh3j58d33knij1httll93mhrgp16dvnn@4ax.com> <v1ciuc$33u73$7@dont-email.me> <1okl3jhhga73kpqs8q88glc3imdo7oua9c@4ax.com> <v1en6e$3mm19$5@dont-email.me> <67baa2ce72a680a413c13ec90d342d27@www.novabbs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 08 May 2024 05:38:38 +0200 (CEST) Injection-Info: dont-email.me; posting-host="1822188738f589222356150800fb9063"; logging-data="3934056"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/De4GDg3EEciTTL+0qEcoy" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:2BZYCRQiJ/fXnxj839EKtrzeUZ8= Bytes: 1926 On Wed, 8 May 2024 03:10:37 +0000, MitchAlsup1 wrote: > Lawrence D'Oliveiro wrote: > >> Consider how you specify these 3 conventions: >> * numbering of bits within a byte > > Most significant is bit[0] least significant is bit[2^k-1] > >> * numbering of bytes within a multibyte quantity > > Most significant byte[0] least significant byte[2^k-1] > >> * the place values (powers of 2) of bits in an integer Now you have to have place number = 2^k + 1 - i, where i is your bit number. So not only must the numbers be different, the relationship has to change depending on the size of the field! In little-endian, both numbers can be the same, in big-endian, they can’t.