Xavier Leroy
a765dca3c7
PR#5934 continued: forgot to commit this in r13438
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13439 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-24 16:08:24 +00:00
Xavier Leroy
a950ef856d
PR#5934: integer shift by negative amount (-1).
...
Several occurrences of the same pattern:
let p = ref(1 lsl N) in
for i = N downto 0 do ... p := !p lsr 1 done
rewritten so as not to precompute "1 lsl N".
This was rather harmless since the value of p wasn't used in the case N < 0.
This is why I'm fixing this on trunk but not on 4.00 branch.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13438 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-24 15:34:09 +00:00
Alain Frisch
a0a14c08fa
Enable and fix more warnings.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12498 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 11:47:28 +00:00
Damien Doligez
3b507dd1aa
renaming of Objective Caml to OCaml and cleanup of copyright headers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez
04b1656222
clean up spaces and tabs
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-22 12:48:24 +00:00
Xavier Leroy
bd7fc99c43
PR#4371: added conversions between big_int and int32/int64/nativeint
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8751 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-01-04 13:15:52 +00:00
Luc Maranget
1889817c2d
des ignores partout pour supprimer les warnins S
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6749 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-01-21 14:15:44 +00:00
Xavier Leroy
bcf73f7556
Attention aux litteraux qui debordent en 32 bits.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5959 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-11-21 15:59:38 +00:00
Xavier Leroy
099f195380
Primitive C pour l'elevation au carre
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5900 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-11-07 07:59:10 +00:00
Xavier Leroy
e26a033cd0
Retour en arriere sur l'exponentiation modulaire, pas correcte
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4532 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-14 20:12:54 +00:00
Xavier Leroy
ab2a1a5959
Renommage modexp -> mod_power pour coherence avec le reste de la bibliotheque
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4493 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-11 08:34:47 +00:00
Xavier Leroy
8e945874cb
Ajout de l'exponentiation modulaire
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4492 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-10 17:23:24 +00:00
Xavier Leroy
7501784c80
MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Pierre Weis
aed1f0a8df
sqrt nat: version corrigee.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3450 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-03-01 16:29:14 +00:00
Pierre Weis
2116da4220
Getting rid of obsolete boolean operators & and or
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-12-28 13:07:42 +00:00
Xavier Leroy
9e206909f4
Introduction des blocs de type Custom.
...
Remplacement des blocs de type Final par des blocs de type Custom.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2804 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-10 14:04:59 +00:00
Xavier Leroy
cc0f32b054
Changement de la licence
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Damien Doligez
1504140d5c
Fix du bug signale par Harrison sur nat_of_string "0".
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1588 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-06-12 15:27:11 +00:00
Xavier Leroy
3d1f8de2cf
Correction de sqrt_nat
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1192 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-11-13 20:18:37 +00:00
Xavier Leroy
e5ea3418a8
Utilisation de Sys.os_type et Sys.word_size. Nettoyages.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1169 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-11-07 10:59:54 +00:00
Damien Doligez
d77533abfa
On utilise Sys.get_config au lieu de cpp.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1055 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-10-07 14:03:20 +00:00