Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary use of Ctypes. #37

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion bitgenerators.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ bug-reports: "https://github.com/zoj613/bitgenerators/issues"
depends: [
"ocaml" {>= "4.14.0"}
"dune" {>= "3.14"}
"ctypes"
"stdint"
"odoc" {with-doc}
"bisect_ppx" {dev & >= "2.5.0" & with-test}
Expand Down
1 change: 0 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
(depends
(ocaml (>= 4.14.0))
dune
ctypes
stdint
(odoc :with-doc)
(bisect_ppx
Expand Down
2 changes: 1 addition & 1 deletion lib/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(library
(name bitgen)
(public_name bitgenerators)
(libraries stdint ctypes)
(libraries stdint)
(ocamlopt_flags (:standard -O3))
(instrumentation (backend bisect_ppx)))

2 changes: 1 addition & 1 deletion lib/seed.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
open Stdint


let xshift = Ctypes.sizeof Ctypes_static.uint32_t * 8 / 2
let xshift = Uint32.bits / 2
let mult_a, mult_l, mult_r = Uint32.(of_int 0x931e8875, of_int 0xca01f9dd, of_int 0x4973f715)

let hashmix const value =
Expand Down
Loading