English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2002-02-07 (01:15)
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 Stolpmann      Telefon: +49 6151 997705 (privat)
Viktoriastr. 45             
64293 Darmstadt     EMail:   gerd@gerd-stolpmann.de
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