Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] unsafe gets and sets on bigarrays?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: [Caml-list] unsafe gets and sets on bigarrays?

Looking at the asm output of this snippet, I can't seem to get rid of the bounds check on the bigarray, even compiling with -unsafe.  Is there an unsafe_get and unsafe_set for bigarrays, or plans to add them?

open Bigarray

let _ =
  let a = Array1.create float32 c_layout 100 in
  a.{0} <- 3.141;
  print_float a.{0}


To unsubscribe, mail  Archives: