Damien Doligez
5d3f0d8b5c
Under BSD, swap32 is a macro defined in some system header, so don't use
...
it as a function name.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-18 13:59:50 +00:00
Damien Doligez
c63f9e0957
fix a few problems with whitespace and over-long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-09 22:38:52 +00:00
Alain Frisch
e174901c93
#5744 : remove other primitives.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13136 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-17 17:15:04 +00:00
Alain Frisch
9c86462e3d
#5774 : caml_int64_direct_bswap should not be a primitive.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-17 16:48:52 +00:00
Fabrice Le Fessant
89bdc10350
PR#5774: Add bswap primitives for amd64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13106 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-11-29 09:55:00 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez
e7f5b858c2
More renaming to OCaml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 16:15:24 +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
Xavier Leroy
f90ddc8c22
PR#5290: added hash functions for channels, nats, mutexes, conditions.
...
Also: added "custom_compare_ext_default" to all struct custom_operations:
default initialization to 0 did what we want, but explicit initialization
better documents the C sources.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11143 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-23 10:07:25 +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
aea227fdeb
Better hashing!
...
- New generic hash function based on Murmur 3, with better statistical
properties (PR#5225), and better speed
- Make sure equal floats hash equally (PR#5222)
- Breadth-first traversal instead of depth-first
- Added seeded hash functions and seeded functorial interface to Hashtbl.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11056 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-05-29 09:52:27 +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
a5aa0b7e37
PR#4210, PR#4245: tightened bound checking in string->integer conversion functions, without changing what the lexer accepts
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9317 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-07-15 14:50:31 +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
Damien Doligez
9ea5edac9a
merge changes 3.10.0 -> 3.10.1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8768 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-01-11 16:13:18 +00:00
Xavier Leroy
5ec8a05157
More fixes for IL32LLP64 model
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7399 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-05-05 13:50:45 +00:00
Xavier Leroy
b89cda5f86
Nettoyages pour modele IL32LLP64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7394 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-05-04 12:41:26 +00:00
Xavier Leroy
3de54dec26
Remplacement long/unsigned long par intnat/uintnat
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7064 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-22 14:21:50 +00:00
Damien Doligez
0c7aecb88d
depollution suite (et fin?) (PR#1914 et PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-02 19:23:29 +00:00
Damien Doligez
5a678d29f5
depollution suite (PR#1914 et PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6045 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-01 16:42:43 +00:00
Damien Doligez
331b2d89c3
depollution suite (PR#1914, PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6044 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-31 14:20:40 +00:00
Damien Doligez
31943bac1d
depollution suite (PR#1914 et PR#1956); byterun/weak.c: PR#1929 suite
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6041 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-29 22:15:02 +00:00
Xavier Leroy
fa20613687
Introduction de Int32.float_of_bits et Int32.bits_of_float. Remplacement de float_of_bytes par Int64.float_of_bits.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6033 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-20 16:24:35 +00:00
Damien Doligez
aa46693dc5
depollution (PR#1914, PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6023 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-16 18:09:44 +00:00
Xavier Leroy
44ca4c62e6
Verification de debordements dans les conversions string -> int
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5957 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-11-21 15:58:10 +00:00
Xavier Leroy
af6f4447ae
int_of_string: proteger contre les caracteres nuls
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5611 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-06-23 11:27:05 +00:00
Xavier Leroy
5c7accd134
Optimisation de Pervasives.compare par strength reduction
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5474 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-04-01 08:46:39 +00:00
Xavier Leroy
3022b15ef3
printf, formats non signes, argument de type Caml int: utiliser Unsigned_long_val au lieu de Long_val
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5467 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-31 08:41:58 +00:00
Xavier Leroy
c17f3fbb73
Probleme d'alignement dans int64_to_float (PR#1428)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5444 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-20 15:07:44 +00:00
Damien Doligez
d80af265ab
int_of_string doit implementer les conventions lexicales du langage sinon le compilo fait Fatal Error
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5176 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-11 20:18:00 +00:00
Pierre Weis
144780b729
Unused match case 'B' in orpat.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5161 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-07 12:22:26 +00:00
Xavier Leroy
384a4cd437
Software emulation of 64-bit integers if needed. Use safe division for int32 and nativeint if necessary
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4832 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-25 08:32:53 +00:00
Xavier Leroy
bddfe5d0ce
Ajout operations sur gros fichiers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4474 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-02 09:16:39 +00:00
Xavier Leroy
ec9b16b6bc
_ dans les litteraux d'entiers et de flottants
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4350 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-04 16:44:55 +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
c290d4a3ba
Nettoyages. Ajout formats %lx %nx %Lx
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3930 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-28 14:19:13 +00:00
Xavier Leroy
9894c1ae59
Dans int64_deserialize, faire attention aux contraintes d'alignement (PR#533)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3779 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-24 12:39:26 +00:00
Xavier Leroy
ddd99c7e5d
Chargement dynamique de primitives C
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-28 14:47:48 +00:00
Xavier Leroy
e2dcbd8d54
Utilisation de FORMAT_BUFFER_SIZE plus coherente.
...
Ajout de int64_bits_of_float et int64_float_of_bits
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3386 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-05 08:51:56 +00:00
Xavier Leroy
22b3c296c1
Bugs dans la serialisation des objets custom (PR#238)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3348 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-11-30 17:13:41 +00:00
Xavier Leroy
730e54bbfe
int_of_string et al: verifier la base sur le premier chiffre (PR#223)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3333 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-11-20 12:27:56 +00:00
Damien Doligez
cdf19e15fc
bcopy -> memmove; pas de virgule finale dans instruct.h
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3310 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-10-12 18:05:42 +00:00
Xavier Leroy
c36622eccd
int*_of_string: echouer si la chaine contient des chiffres illegaux dans la base courante (PR#178)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3267 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-08-08 12:26:50 +00:00
Xavier Leroy
c84b743445
Ajout _to_float, _of_float
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3106 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-18 14:41:13 +00:00
Damien Doligez
3f6a493b87
MacOS: ajout macosunix; portage bigarray et systhreads; tabs
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3042 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-05 18:30:22 +00:00
Xavier Leroy
98af6cd8c3
Suite int64 non alignes
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2942 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-10 17:54:18 +00:00
Xavier Leroy
484e2ce778
Probleme d'alignement des entiers 64 bits sur certaines architectures (MIPS/Irix en particulier)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2941 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-10 17:36:31 +00:00
Xavier Leroy
dd1d87cf37
int_of_string doit echouer si la chaine est vide
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2913 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-07 09:08:17 +00:00
Xavier Leroy
96cb7c30af
Ajout des conversions int <-> int32 <-> int64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2901 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-05 19:17:54 +00:00
Xavier Leroy
09ee7be925
Debug sur machine 64 bits
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2841 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-21 19:38:32 +00:00