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] doing MMX through ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-17 (22:43)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] doing MMX through ocaml

Le 17 nov. 05 à 23:16, Damien Bobillot a écrit :

> PS : I think it will perhaps have the same problems as floating  
> computation, which is not really efficient. As far as I know,  
> floats are not stored as float in memory, but as a generic ocaml  
> value  : a pointer to a structure contains a tag indicating that  
> it's a float, and after the IEEE float value.

This not exactly true. As an exception, they are unboxed in records  
and arrays made of floats only [1,2].

Note that you can also use bigarrays [3] to have unboxed arrays of  
any scalar datatype.

This page [4] (unfortunately not available in the faq of the new  
ocaml site) contains interesting information about writing numerical  
code in ocaml.



[1] <>
[2] <>
[3] <>
[4] <>