>>>>> "blake" == blake  <[EMAIL PROTECTED]> writes:

    blake> I have been working with cmucl 18e and the Intel IPP performance 
    blake> libraries and would like to be able to write an interface from lisp to 
    blake> call their functions as simply as possible.  Intel however has a variety 
    blake> of functions which require  structures to be passed by value, e.g. a 
    blake> region of interest structure, size.width, size.height for an image copy 
    blake> function.  The way I have done it in the past is to write a small C 
    blake> wrapper function around the intel function which either translates the 
    blake> pointer from lisp and then calls the function in C, or which creates the 
    blake> structure itself and passes it.

    blake> In looking at the CMUCL ffi manual, it explicitly says that structures 
    blake> can't be passed by value.  Is there some other way to call the Intel 
    blake> functions which require such structues by value?  For example, is this 

The obvious way would be to write a wrapper that takes a pointer to
the structure.  The wrapper copies the structure to a local structure
and then calls the Intel function with local structure.  

Ray


Reply via email to