DragonFly users List (threaded) for 2010-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: tgamma function in math library
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 / \
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]