Commit Graph

35 Commits (583bfd46c21f66ef6c8b82578289c74f983afd51)

Author SHA1 Message Date
Gabriel Scherer 2c990bacc0 PR#4323: have "of_string" in Num and Big_int work with binary and hexa representations [patch by zoep]
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13970 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-08-04 19:58:03 +00:00
Xavier Leroy 0f45880800 PR#6010: Big_int.extract_big_int gives wrong results on negative arguments
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13660 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-08 08:38:55 +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 c91db736b1 merge changes from 3.12.0 to 3.12.1
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11123 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-20 09:17:07 +00:00
Xavier Leroy 30878cea6c PR#5017: shift_right_big_int on negative numbers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10327 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-29 13:53:01 +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
Damien Doligez 71b94fa3e8 merge changes from ocaml3111rc0 to ocaml3111
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9319 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-07-20 11:51:50 +00:00
Damien Doligez ed32f569e3 merge changes from ocaml3110 to ocaml3111rc0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9270 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-05-20 11:52:42 +00:00
Xavier Leroy 42f90d720e PR#4641: added bitwise operation to Big_int
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-04-01 16:20:20 +00:00
Xavier Leroy de5bed37de PR#4566: bugs in approx_{ratio/num}_fix.
big_int.ml: bugs in conversions int64/big_int on 32-bit platforms.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8977 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-08-03 09:04:40 +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
Damien Doligez a4a3c10e70 fusion des modifs de 3.08.4
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7019 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-08-13 20:59:37 +00:00
Damien Doligez e6007f6057 fusion des changements jusqu'a 3.08.3
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6824 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-03-24 17:20:54 +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 a173c47090 Suppression string_misc (PR#2891) + unused variable
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6672 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-09 14:24:40 +00:00
Damien Doligez 1f051a0398 PR#1989
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6038 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-29 19:26:15 +00:00
Pierre Weis 00d14a727a Retour en arriere sur le precedent commit
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4845 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-27 12:06:49 +00:00
Pierre Weis 01ca2d9ec2 Introducing a ``scanf'' facility in Objective Caml.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4780 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-07 07:41:12 +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
Xavier Leroy 6b3edba618 Bug dans l'elevation a la puissance (PR#451)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4094 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-04 14:42:42 +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
Pierre Weis 3eac8b0537 fix de square_big_int et sys_big_int_of_string par Damien
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2395 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-09-02 17:58:13 +00:00
Damien Doligez fafa8d241d fix square_big_int
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2388 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-08-03 17:58:46 +00:00
Damien Doligez 7e9fb6b76c Bug de square_big_int signale par Alan Schmitt
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2382 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-07-22 12:57:14 +00:00
Pierre Weis 700230ecf4 Bug dans is_int_big_int
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2241 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-12-23 18:57:26 +00:00
Damien Doligez 03ec746bf1 deTABisation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-05-19 15:42:21 +00:00
Xavier Leroy 0756477380 Erreurs de syntaxe
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1304 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-02-25 15:46:23 +00:00
Xavier Leroy d770d2cbd9 Correction big_int_of_string
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1300 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-02-25 14:40:34 +00:00
Xavier Leroy 2301d778e7 Renommage en Objective Caml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-30 14:53:58 +00:00
Xavier Leroy 36381cc4d9 Portage de libnum pour Caml Special Light
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@400 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-11-06 10:34:19 +00:00