[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] efficient bytevector-ieee-double-native-ref

From: Eduardo Cavazos
Subject: [Chicken-users] efficient bytevector-ieee-double-native-ref
Date: Tue, 17 Feb 2009 09:47:46 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20080716 SeaMonkey/1.1.11

Eduardo Cavazos wrote:

(define (bytevector-ieee-double-native-ref blob i)
  (f64vector-ref (blob->f64vector/shared blob) i))

So the obvious problem here is the conversion is going to impact performance.

If somebody who is familiar with Chicken internals can suggest a way to extract an 'f64' element from a blob directly, I think I'll be set. :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]