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-04 (23:19)
From: Berke Durak <berke@a...>
Subject: [Caml-list] Suggestion for Int32.rotate

I was attempting to implement some block ciphers, and I missed the following :

1) An Int32.rotate function that generates data-dependent
hardware rotates whenever possible (i.e. things like rol.l d0,d1)

2) A syntax extension (or extension to the standard syntax) for
entering Int32 and Int64 constants. 

3) A hack into Printf to remove the need to use Int32.format

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.

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