Version française
Home     About     Download     Resources     Contact us    
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}

Chris

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr