require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_MATH_H_)) {
    eval 'sub _MATH_H_ () {1;}' unless defined(&_MATH_H_);
    require 'sys/_types.ph';
    require 'sys/cdefs.ph';
    require 'sys/limits.ph';
    eval 'sub HUGE_VAL () {(*( &void *) &__infinity);}' unless defined(&HUGE_VAL);
    if((defined(&__ISO_C_VISIBLE) ? &__ISO_C_VISIBLE : 0) >= 1999) {
	eval 'sub HUGE_VALF () {( &HUGE_VAL);}' unless defined(&HUGE_VALF);
	eval 'sub HUGE_VALL () {( &HUGE_VAL);}' unless defined(&HUGE_VALL);
	eval 'sub INFINITY () { &HUGE_VALF;}' unless defined(&INFINITY);
	unless(defined(&__vax__)) {
	    eval 'sub NAN () {(*( &void *) &__nan);}' unless defined(&NAN);
	}
	eval 'sub FP_INFINITE () {0x1;}' unless defined(&FP_INFINITE);
	eval 'sub FP_NAN () {0x2;}' unless defined(&FP_NAN);
	eval 'sub FP_NORMAL () {0x4;}' unless defined(&FP_NORMAL);
	eval 'sub FP_SUBNORMAL () {0x8;}' unless defined(&FP_SUBNORMAL);
	eval 'sub FP_ZERO () {0x10;}' unless defined(&FP_ZERO);
	eval 'sub FP_ILOGB0 () {(- &INT_MAX);}' unless defined(&FP_ILOGB0);
	eval 'sub FP_ILOGBNAN () { &INT_MAX;}' unless defined(&FP_ILOGBNAN);
	eval 'sub fpclassify {
	    my($x) = @_;
    	    eval q((($sizeof{$x} == $sizeof{\'float\'}) ?  &__fpclassifyf($x) : ($sizeof{$x} == $sizeof{\'double\'}) ?  &__fpclassify($x) :  &__fpclassifyl($x)));
	}' unless defined(&fpclassify);
	eval 'sub isfinite {
	    my($x) = @_;
    	    eval q((($sizeof{$x} == $sizeof{\'float\'}) ?  &__isfinitef($x) : ($sizeof{$x} == $sizeof{\'double\'}) ?  &__isfinite($x) :  &__isfinitel($x)));
	}' unless defined(&isfinite);
	eval 'sub isinf {
	    my($x) = @_;
    	    eval q((($sizeof{$x} == $sizeof{\'float\'}) ?  &isinff($x) : ($sizeof{$x} == $sizeof{\'double\'}) ?  &__isinf($x) :  &__isinfl($x)));
	}' unless defined(&isinf);
	eval 'sub isnan {
	    my($x) = @_;
    	    eval q((($sizeof{$x} == $sizeof{\'float\'}) ?  &isnanf($x) : ($sizeof{$x} == $sizeof{\'double\'}) ?  &__isnan($x) :  &__isnanl($x)));
	}' unless defined(&isnan);
	eval 'sub isnormal {
	    my($x) = @_;
    	    eval q((($sizeof{$x} == $sizeof{\'float\'}) ?  &__isnormalf($x) : ($sizeof{$x} == $sizeof{\'double\'}) ?  &__isnormal($x) :  &__isnormall($x)));
	}' unless defined(&isnormal);
	eval 'sub signbit {
	    my($x) = @_;
    	    eval q((($sizeof{$x} == $sizeof{\'float\'}) ?  &__signbitf($x) : ($sizeof{$x} == $sizeof{\'double\'}) ?  &__signbit($x) :  &__signbitl($x)));
	}' unless defined(&signbit);
	eval 'sub isgreater {
	    my($x, $y) = @_;
    	    eval q((! &isunordered(($x), ($y))  && ($x) > ($y)));
	}' unless defined(&isgreater);
	eval 'sub isgreaterequal {
	    my($x, $y) = @_;
    	    eval q((! &isunordered(($x), ($y))  && ($x) >= ($y)));
	}' unless defined(&isgreaterequal);
	eval 'sub isless {
	    my($x, $y) = @_;
    	    eval q((! &isunordered(($x), ($y))  && ($x) < ($y)));
	}' unless defined(&isless);
	eval 'sub islessequal {
	    my($x, $y) = @_;
    	    eval q((! &isunordered(($x), ($y))  && ($x) <= ($y)));
	}' unless defined(&islessequal);
	eval 'sub islessgreater {
	    my($x, $y) = @_;
    	    eval q((! &isunordered(($x), ($y))  && (($x) > ($y) || ($y) > ($x))));
	}' unless defined(&islessgreater);
	eval 'sub isunordered {
	    my($x, $y) = @_;
    	    eval q(( &isnan($x) ||  &isnan($y)));
	}' unless defined(&isunordered);
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	eval 'sub M_E () {2.7182818284590452354;}' unless defined(&M_E);
	eval 'sub M_LOG2E () {1.4426950408889634074;}' unless defined(&M_LOG2E);
	eval 'sub M_LOG10E () {0.43429448190325182765;}' unless defined(&M_LOG10E);
	eval 'sub M_LN2 () {0.69314718055994530942;}' unless defined(&M_LN2);
	eval 'sub M_LN10 () {2.30258509299404568402;}' unless defined(&M_LN10);
	eval 'sub M_PI () {3.14159265358979323846;}' unless defined(&M_PI);
	eval 'sub M_PI_2 () {1.57079632679489661923;}' unless defined(&M_PI_2);
	eval 'sub M_PI_4 () {0.78539816339744830962;}' unless defined(&M_PI_4);
	eval 'sub M_1_PI () {0.31830988618379067154;}' unless defined(&M_1_PI);
	eval 'sub M_2_PI () {0.63661977236758134308;}' unless defined(&M_2_PI);
	eval 'sub M_2_SQRTPI () {1.12837916709551257390;}' unless defined(&M_2_SQRTPI);
	eval 'sub M_SQRT2 () {1.41421356237309504880;}' unless defined(&M_SQRT2);
	eval 'sub M_SQRT1_2 () {0.70710678118654752440;}' unless defined(&M_SQRT1_2);
	if(defined(&__vax__)) {
	    eval 'sub MAXFLOAT () {(1.70141173319264430e+38);}' unless defined(&MAXFLOAT);
	} else {
	    eval 'sub MAXFLOAT () {(3.40282346638528860e+38);}' unless defined(&MAXFLOAT);
	}
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	eval("sub fdlibm_ieee () { -1; }") unless defined(&fdlibm_ieee);
	eval("sub fdlibm_svid () { 0; }") unless defined(&fdlibm_svid);
	eval("sub fdlibm_xopen () { 1; }") unless defined(&fdlibm_xopen);
	eval("sub fdlibm_posix () { 2; }") unless defined(&fdlibm_posix);
	eval 'sub _LIB_VERSION_TYPE () { &enum  &fdversion;}' unless defined(&_LIB_VERSION_TYPE);
	eval 'sub _LIB_VERSION () { &_fdlib_version;}' unless defined(&_LIB_VERSION);
	eval 'sub _IEEE_ () { &fdlibm_ieee;}' unless defined(&_IEEE_);
	eval 'sub _SVID_ () { &fdlibm_svid;}' unless defined(&_SVID_);
	eval 'sub _XOPEN_ () { &fdlibm_xopen;}' unless defined(&_XOPEN_);
	eval 'sub _POSIX_ () { &fdlibm_posix;}' unless defined(&_POSIX_);
	unless(defined(&__cplusplus)) {
	}
	eval 'sub HUGE () { &MAXFLOAT;}' unless defined(&HUGE);
	eval 'sub X_TLOSS () {1.41484755040568800000e+16;}' unless defined(&X_TLOSS);
	eval 'sub DOMAIN () {1;}' unless defined(&DOMAIN);
	eval 'sub SING () {2;}' unless defined(&SING);
	eval 'sub OVERFLOW () {3;}' unless defined(&OVERFLOW);
	eval 'sub UNDERFLOW () {4;}' unless defined(&UNDERFLOW);
	eval 'sub TLOSS () {5;}' unless defined(&TLOSS);
	eval 'sub PLOSS () {6;}' unless defined(&PLOSS);
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__ISO_C_VISIBLE) ? &__ISO_C_VISIBLE : 0) >= 1999|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) <= 500) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	if(defined(&__LIBM_PRIVATE)) {
	}
    }
    if((defined(&__ISO_C_VISIBLE) ? &__ISO_C_VISIBLE : 0) >= 1999) {
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
	if(0) {
	}
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) <= 500) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__ISO_C_VISIBLE) ? &__ISO_C_VISIBLE : 0) >= 1999) {
	if(0) {
	}
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)  && defined( &__vax__)) {
    }
}
1;
