From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 2F9A9BC37 for ; Wed, 28 Oct 2009 22:05:28 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgcDACZP6ErZSMDdi2dsb2JhbACBT5lyAQEBCgsKBxEFvnmEPwSBYQ X-IronPort-AV: E=Sophos;i="4.44,641,1249250400"; d="scan'208";a="49423927" Received: from fmmailgate01.web.de ([217.72.192.221]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Oct 2009 22:05:27 +0100 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 6BBF4133EB656; Wed, 28 Oct 2009 22:05:27 +0100 (CET) Received: from [95.208.117.111] (helo=frosties.localdomain) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #314) id 1N3Fhv-0006Jv-00; Wed, 28 Oct 2009 22:05:27 +0100 Received: from mrvn by frosties.localdomain with local (Exim 4.69) (envelope-from ) id 1N3Fhu-00017p-RW; Wed, 28 Oct 2009 22:05:26 +0100 From: Goswin von Brederlow To: Sylvain Le Gall Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: How to read different ints from a Bigarray? References: <87eiond3of.fsf@frosties.localdomain> <87639zd0m9.fsf@frosties.localdomain> <87tyxj5rkv.fsf@frosties.localdomain> Date: Wed, 28 Oct 2009 22:05:26 +0100 In-Reply-To: (Sylvain Le Gall's message of "Wed, 28 Oct 2009 18:19:24 +0000 (UTC)") Message-ID: <87my3bnsa1.fsf@frosties.localdomain> User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.22 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX1/pJ2A3YOTZsTpLHTday14nIzyutr9DY03VbBHT yVG6CQWG7FxsG9VJoRALUtdpbBT0DvWzPCsh/EqqtO2aK1ECsq j+cxhJv3s= X-Spam: no; 0.00; bigarray:01 le-gall:01 le-gall:01 compiler:01 syntax:01 bigarray:01 stubs:01 mfg:98 wrote:01 wrote:01 ints:01 caml-list:01 int:01 int:01 writes:01 Sylvain Le Gall writes: > On 28-10-2009, Goswin von Brederlow wrote: >> Sylvain Le Gall writes: >>> On 28-10-2009, Goswin von Brederlow wrote: >>>> Sylvain Le Gall writes: >>>>> On 28-10-2009, Goswin von Brederlow wrote: >> >>>> PS: Is a.{i} <- x a C call? >>> >>> Yes. >> >> That obviously sucks. I was hoping since the compiler has a special >> syntax for it it would be built-in. Bigarray being a seperate module >> should have clued me in. >> >> That obviously speaks against splitting int64 into 8 bytes and calling >> a.{i} <- x for each. >> >> I think I will implement your method and C stubs for every set/get and >> compare. > > This is only the case with int64 array in fact (I really have done test > and you don't need a C call in most case). Can I assume you tested on a 32bit cpu? MfG Goswin