tgamma function in math library
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Fri Jan 1 11:09:49 PST 2010
Karthik Subramanian wrote:
Perhaps you could write a wrapper called gamma() that does something like this:
=====
struct utsname *ub;
/* malloc, etc. */
if(uname(ub)) {
die();
}
if (strcmp(ub->sysname, "Linux") {
tgamma();
} else {
gamma();
}
That's wont work - you can't call the wrapper "gamma" as well.
Either use configure, or hardcode it:
#ifdef __GLIBC__
#define gamma(x) tgamma(x)
#endif
and then use gamma() normally.
cheers
simon
--
<3 the future +++ RENT this banner advert +++ ASCII Ribbon /"\
rock the past +++ space for low CHF NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
More information about the Users
mailing list