Read file/stream

Regan Heath regan at netmail.co.nz
Mon Mar 14 03:52:19 PDT 2011


On Fri, 11 Mar 2011 22:39:43 -0000, Stewart Gordon <smjg_1998 at yahoo.com>  
wrote:

> On 11/03/2011 21:51, Steven Schveighoffer wrote:
> <snip>
>>> Presumably there's a reason that it's been provided for uint but not  
>>> ushort or ulong....
>>
>> I think things in std.intrinsic are functions that tie directly to CPU  
>> features,
>
> True, but...
>
>> so presumably, the CPU only provides the possibility for 4-byte width.
>
> D is designed to run on a variety of CPUs.  Do you really think that  
> they all have a built-in instruction to reverse the order of 4 bytes but  
> no other number?

I have some in the cryptographic hash modules which I am trying to tidy up  
for inclusion into phobos.  They make use of bswap where possible but  
otherwise have to do things the long way.  It would be nice to have some  
in std.intrinsic for 16, and 64 bit entities.

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list