-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3c05d3
commit 842bb24
Showing
162 changed files
with
5,269 additions
and
5,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
profile=janestreet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
(** [state] is defined as a subtype of [int] using the [private] keyword. This makes it an | ||
opaque type for most purposes, and tells the compiler that the type is immediate. *) | ||
type state = private int | ||
|
||
type seed = int | ||
type hash_value = int | ||
|
||
external create_seeded : seed -> state = "%identity" [@@noalloc] | ||
external fold_int64 : state -> int64 -> state = "Base_internalhash_fold_int64" [@@noalloc] | ||
external fold_int : state -> int -> state = "Base_internalhash_fold_int" [@@noalloc] | ||
external fold_float : state -> float -> state = "Base_internalhash_fold_float" [@@noalloc] | ||
external fold_string : state -> string -> state = "Base_internalhash_fold_string" [@@noalloc] | ||
external get_hash_value : state -> hash_value = "Base_internalhash_get_hash_value" [@@noalloc] | ||
external create_seeded : seed -> state = "%identity" [@@noalloc] | ||
external fold_int64 : state -> int64 -> state = "Base_internalhash_fold_int64" [@@noalloc] | ||
external fold_int : state -> int -> state = "Base_internalhash_fold_int" [@@noalloc] | ||
external fold_float : state -> float -> state = "Base_internalhash_fold_float" [@@noalloc] | ||
|
||
external fold_string : state -> string -> state = "Base_internalhash_fold_string" | ||
[@@noalloc] | ||
|
||
external get_hash_value : state -> hash_value = "Base_internalhash_get_hash_value" | ||
[@@noalloc] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.