Version française
Home     About     Download     Resources     Contact us    
Browse thread
About adding embedded user types into Ocaml bytecode runtime
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: William Chesters <williamc@d...>
Subject: Allocating on doublewords; was: About adding embedded user types into Ocaml bytecode runtime
Basile STARYNKEVITCH writes:
 > However, on some 32 bits machines (those, like old Sparcs, which
 > requires doubleword aligned double precision floats) the user data
 > objects should either always be allocated at a doubleword (this is
 > probably tricky, but useful)

Actually it's not that difficult, and I have done it for float arrays
because I use lapack on Suns.  If anyone wants the patch, they can
have it.  It's not pretty, and I've not really used it hard enough to
be sure it never causes problems, but so far it seems to work.