From mboxrd@z Thu Jan 1 00:00:00 1970 From: don@DonHopkins.com (Don Hopkins) Date: Thu, 9 Nov 2017 08:14:28 +0100 Subject: [TUHS] origins of void* -- Apology! In-Reply-To: <7wzi7wt0sc.fsf@junk.nocrew.org> References: <7617c69abf46fbe3f206c6208000fe3b26854359@webmail.yaccman.com> <065d01d3575e$f71f6ad0$e55e4070$@ronnatalie.com> <20171108174450.5564F20334@orac.inputplus.co.uk> <20171108212550.56005156E7D7@mail.bitblocks.com> <7wzi7wt0sc.fsf@junk.nocrew.org> Message-ID: <42D46D6E-46F4-49E9-A76B-360A812DBBB0@gmail.com> > On 9 Nov 2017, at 07:37, Lars Brinkhoff wrote: > > Bakul Shah wrote: >> I agree that `char' shouldn't do double duty as the smallest >> addressable unit and I was suggesing uint8_t does that job. > > There are still machines around where 8-bit bytes isn't a natural fit. 1 bit bytes, the smallest addressable unit on the PDP-10, sounds kinda cool actually. Now would those be signed or unsigned? The PowerPC was great at smashing and swizzling bit fields and emulating other CPU instruction sets with different memory layouts, because it could rotate and mask very quickly! You could do byte reversal in three instructions: "rotate left" 8 to position two of the bytes, then two “rotate left word immediate then mask insert” instructions. https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.alangref/idalangref_32bit_rtate_shift.htm http://sametwice.com/rlwinm https://www.google.com/patents/US20140208067 PowerPC AltiVec was a really beautiful instruction set. https://en.wikipedia.org/wiki/AltiVec -Don -------------- next part -------------- An HTML attachment was scrubbed... URL: