summaryrefslogtreecommitdiffstats
path: root/bytecomp/translcore.ml
diff options
context:
space:
mode:
authorFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>2012-11-06 17:03:34 +0000
committerFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>2012-11-06 17:03:34 +0000
commit95c20bc6aece97adee9adc812fc8ac29a52552f3 (patch)
treef54f9d5b97a87a1ef400a1ada77d64c1f17248e1 /bytecomp/translcore.ml
parentf1fb961192acd95eed1dd15580b1051e7be61b2c (diff)
PR#5762: Add primitives for fast access to bigarray dimensions
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13069 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'bytecomp/translcore.ml')
-rw-r--r--bytecomp/translcore.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/bytecomp/translcore.ml b/bytecomp/translcore.ml
index 978813e45..9c2f3646e 100644
--- a/bytecomp/translcore.ml
+++ b/bytecomp/translcore.ml
@@ -272,7 +272,10 @@ let primitives_table = create_hashtable 57 [
"%caml_ba_unsafe_set_2",
Pbigarrayset(true, 2, Pbigarray_unknown, Pbigarray_unknown_layout);
"%caml_ba_unsafe_set_3",
- Pbigarrayset(true, 3, Pbigarray_unknown, Pbigarray_unknown_layout)
+ Pbigarrayset(true, 3, Pbigarray_unknown, Pbigarray_unknown_layout);
+ "%caml_ba_dim_1", Pbigarraydim(1);
+ "%caml_ba_dim_2", Pbigarraydim(2);
+ "%caml_ba_dim_3", Pbigarraydim(3);
]
let prim_makearray =