bukka / php-fftw

PHP Wrapper for FFTW library
Other
3 stars 1 forks source link

X() fftw compile options #7

Closed rspadim closed 10 years ago

rspadim commented 10 years ago

there're some fftw compile options that change fftw function prefix at fftw code they explain to use X() as a prefix macro, check:

http://www.fftw.org/fftw3_doc/Installation-on-Unix.html#Installation-on-Unix https://github.com/FFTW/fftw3/blob/cde4559ba9b822166cb88a84a0994fdb83a2061c/CONVENTIONS


NAME MANGLING: use X(foo) for external names instead of fftw_foo. X(foo) expands to fftwf_foo or fftw_foo, depending on the precision. (Unfortunately, this is a ugly form of hungarian notation. Grrr...) Names that are not exported do not need to be mangled.


maybe we could implement just fftw prefix at php code, or implement many functions fftwX where each X will create a function fftw fftwq etc etc.... the problem is 1) documentation, we should explain each function 2) that's the first kind of php extension that i see a prefix changing the function name 3) maybe we will have two or more fftw libs in the same server, what version should we use? fftw? fftwq_?

rspadim commented 10 years ago

from email with bukka: we should use always doube (fftw) as the php data type is double... ;)

considering just "fftw_" as X()

maybe in some version 99999.999999 we could implement gmp but let's close this issue for now