octave-patch-tracker
[Top][All Lists]
Advanced

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

[Octave-patch-tracker] [patch #7468] Wrapper for OSX libBLAS.dylib and l


From: anonymous
Subject: [Octave-patch-tracker] [patch #7468] Wrapper for OSX libBLAS.dylib and libLAPACK.dylib
Date: Fri, 25 Feb 2011 11:06:22 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13

Follow-up Comment #2, patch #7468 (project octave):

I do not object any of the changes you propose.

f2c_lapack_func is an array of function pointers. +1 in the array *definition*
makes the array one element larger, so that when (an unused) stub for
f2c_LAPACK_COUNT is created, the compiler does not warn about dereferencing
f2c_lapack_func[f2c_LAPACK_COUNT].

BUT now that I think about this again, it would be cleaner to define:

#define F2C_LAPACK_CALL_NONE(name)

i.e. an empty macro body, and then replace the line:

  _(LAPACK_COUNT,0)

with

  _(LAPACK_COUNT,NONE)

This way f2c_lapack_func[f2c_LAPACK_COUNT] would never be used, and hence no
warning either :-)

I have attached an updated blaswrap.c to this effect. The file is also
untabified and has no C++ comments :-)


(file #22779)
    _______________________________________________________

Additional Item Attachment:

File name: blaswrap.c                     Size:9 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7468>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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