On Fri, Nov 14, 2008 at 10:42 AM, Charles R Harris < [EMAIL PROTECTED]> wrote:
> > > On Fri, Nov 14, 2008 at 10:13 AM, David Cournapeau <[EMAIL PROTECTED]>wrote: > >> On Fri, Nov 14, 2008 at 6:39 PM, Charles R Harris >> <[EMAIL PROTECTED]> wrote: >> >> > static float npy_tanhf( >> > ... >> > #define tanhf npy_tanhf >> >> I don't like this solution so much. The right solution IMHO is to >> correctly detect the intrinsic so we don't define a function already >> available. >> > > We need a function with a pointer that can called by the ufunc. I was > guessing that with /Ox optimization windows might be using a hardware > instructions where it could and MS forgot to put a corresponding version in > the library. In any case, the current code is safe, if ugly, and if you can > get the detection set up right it won't get in the way. > > So maybe the thing to check is the presence of the pointer, something like float (*foo)() = barf; Chuck
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
