File tree Expand file tree Collapse file tree 12 files changed +14
-86
lines changed
stdlib_upstream_compatible Expand file tree Collapse file tree 12 files changed +14
-86
lines changed Original file line number Diff line number Diff line change 17
17
18
18
(library
19
19
(name alpha)
20
- (wrapped false )
20
+ (public_name ocaml.alpha )
21
21
(modes byte native)
22
22
(flags
23
23
(-strict-sequence
56
56
(with-stdout-to
57
57
to_install.sexp
58
58
(run "%{first-dep}" "alpha"))))
59
-
60
- (install
61
- (files
62
- (include to_install.sexp))
63
- (section lib)
64
- (package ocaml))
Original file line number Diff line number Diff line change 17
17
18
18
(library
19
19
(name beta)
20
- (wrapped false )
20
+ (public_name ocaml.beta )
21
21
(modes byte native)
22
22
(enabled_if
23
23
(= %{architecture} "amd64"))
58
58
(with-stdout-to
59
59
to_install.sexp
60
60
(run "%{first-dep}" "beta"))))
61
-
62
- (install
63
- (enabled_if
64
- (= %{architecture} "amd64"))
65
- (files
66
- (include to_install.sexp))
67
- (section lib)
68
- (package ocaml))
Original file line number Diff line number Diff line change 17
17
18
18
(library
19
19
(name stable)
20
- (wrapped false )
20
+ (public_name ocaml.stable )
21
21
(modes byte native)
22
22
(flags
23
23
(-strict-sequence
66
66
(with-stdout-to
67
67
to_install.sexp
68
68
(run "%{first-dep}" "stable"))))
69
-
70
- (install
71
- (files
72
- (include to_install.sexp))
73
- (section lib)
74
- (package ocaml))
Original file line number Diff line number Diff line change 14
14
15
15
(library
16
16
(name stdlib_alpha)
17
- (wrapped false )
17
+ (public_name ocaml.stdlib_alpha )
18
18
(modes byte native)
19
19
(flags
20
20
(-strict-sequence
42
42
(with-stdout-to
43
43
to_install.sexp
44
44
(run "%{first-dep}" "stdlib_alpha"))))
45
-
46
- (install
47
- (files
48
- (include to_install.sexp))
49
- (section lib)
50
- (package ocaml))
Original file line number Diff line number Diff line change 14
14
15
15
(library
16
16
(name stdlib_beta)
17
- (wrapped false )
17
+ (public_name ocaml.stdlib_beta )
18
18
(modes byte native)
19
19
(enabled_if
20
20
(= %{architecture} "amd64"))
44
44
(with-stdout-to
45
45
to_install.sexp
46
46
(run "%{first-dep}" "stdlib_beta"))))
47
-
48
- (install
49
- (enabled_if
50
- (= %{architecture} "amd64"))
51
- (files
52
- (include to_install.sexp))
53
- (section lib)
54
- (package ocaml))
Original file line number Diff line number Diff line change 14
14
15
15
(library
16
16
(name stdlib_stable)
17
- (wrapped false )
17
+ (public_name ocaml.stdlib_stable )
18
18
(modes byte native)
19
19
(flags
20
20
(-strict-sequence
42
42
(with-stdout-to
43
43
to_install.sexp
44
44
(run "%{first-dep}" "stdlib_stable"))))
45
-
46
- (install
47
- (files
48
- (include to_install.sexp))
49
- (section lib)
50
- (package ocaml))
Original file line number Diff line number Diff line change 14
14
15
15
(library
16
16
(name stdlib_upstream_compatible)
17
- (wrapped false )
17
+ (public_name ocaml.stdlib_upstream_compatible )
18
18
(modes byte native)
19
19
(flags
20
20
(-strict-sequence
42
42
(with-stdout-to
43
43
to_install.sexp
44
44
(run "%{first-dep}" "stdlib_upstream_compatible"))))
45
-
46
- (install
47
- (files
48
- (include to_install.sexp))
49
- (section lib)
50
- (package ocaml))
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 18
18
19
19
(library
20
20
(name upstream_compatible)
21
- (wrapped false )
21
+ (public_name ocaml.upstream_compatible )
22
22
(modes byte native)
23
23
(flags
24
24
(-strict-sequence
57
57
(with-stdout-to
58
58
to_install.sexp
59
59
(run "%{first-dep}" "upstream_compatible"))))
60
-
61
- (install
62
- (files
63
- (include to_install.sexp))
64
- (section lib)
65
- (package ocaml))
Original file line number Diff line number Diff line change 14
14
(* Prelude: Functions on unboxed numbers *)
15
15
16
16
module Float32_u = Beta. Float32_u
17
+ module Float32 = Beta. Float32
17
18
module Float_u = Stable. Float_u
18
19
module Int32_u = Stable. Int32_u
19
20
module Int64_u = Stable. Int64_u
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ module Float32_u_array0 : Gen_u_array.S0
65
65
" caml_array_blit" " caml_unboxed_float32_vect_blit"
66
66
let empty () = [||]
67
67
external to_boxed : ('a : float32 ) -> (float32 [@ local_opt]) = " %box_float32"
68
- let compare_element x y = Float32. compare (to_boxed (x () )) (to_boxed (y () ))
68
+ let compare_element x y = Beta. Float32. compare (to_boxed (x () )) (to_boxed (y () ))
69
69
end
70
70
71
71
module Float32_u_array = Gen_u_array. Make (Float32_u_array0 )
Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ struct
82
82
measure_alloc (fun () -> go #0. s #0. s)
83
83
in
84
84
Printf. printf " Unboxed:\n estimate: %f\n allocations: %s\n "
85
- (Float32. to_float (to_float32 est) *. 4. ) (get_allocations () )
85
+ (Beta. Float32. to_float (to_float32 est) *. 4. ) (get_allocations () )
86
86
end
87
87
88
88
module Pi_boxed =
89
89
struct
90
- open Float32
90
+ open Beta. Float32
91
91
open Operators
92
92
93
93
let [@ inline never] step n estimate =
@@ -125,8 +125,8 @@ let print_record_and_allocs s r =
125
125
Printf. printf
126
126
" %s:\n allocated bytes: %.2f\n a: %.2f\n b: %.2f\n c: %.2f\n d: %.2f\n "
127
127
s allocs
128
- (Float32. to_float (Float32_u. to_float32 r.a)) (Float32. to_float (Float32_u. to_float32 r.b))
129
- (Float32. to_float (Float32_u. to_float32 r.c)) (Float32. to_float (Float32_u. to_float32 r.d))
128
+ (Beta. Float32. to_float (Float32_u. to_float32 r.a)) (Beta. Float32. to_float (Float32_u. to_float32 r.b))
129
+ (Beta. Float32. to_float (Float32_u. to_float32 r.c)) (Beta. Float32. to_float (Float32_u. to_float32 r.d))
130
130
131
131
(* Building a record should only allocate the box *)
132
132
let [@ inline never] build x =
You can’t perform that action at this time.
0 commit comments