English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2001-03-05 (08:01)
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 caml-list-request@inria.fr.  Archives: http://caml.inria.fr