Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Suggestion for Int32.rotate
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] Suggestion for Int32.rotate
On 2002.02.05 00:06 Berke Durak wrote:
> I.e. better support for int32's. I understand that the Caml team does
> not want people to use int32's (or int64's) by default. However a lot
> of coding/crypto stuff, deserving to be ported to Caml, works with
> 32-bit ints and it would be good to be able to use them at full speed.
> 
> For example, the MD5 routine used in Digest.string could be efficiently
> rewritten in Caml.

I have coded Blowfish and DES in Caml, and optimizing them is painful.
I would not do it again. Interestingly, Blowfish is faster if it uses
only int and not int32, although twice as many int operations are
needed than int32 operations.

Gerd
-- 
----------------------------------------------------------------------------
Gerd Stolpmann      Telefon: +49 6151 997705 (privat)
Viktoriastr. 45             
64293 Darmstadt     EMail:   gerd@gerd-stolpmann.de
Germany                     
----------------------------------------------------------------------------
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr