Home | History | Annotate | Download | only in libxml2

Lines Matching refs:floatval

1036 	    switch (xmlXPathIsInf(cur->floatval)) {
1044 if (xmlXPathIsNaN(cur->floatval)) {
1046 } else if (cur->floatval == 0 && xmlXPathGetSign(cur->floatval) != 0) {
1049 fprintf(output, "Object is a number : %0g\n", cur->floatval);
2239 ret->floatval = val;
2253 ret->floatval = val;
2298 res = xmlXPathCastNumberToString(val->floatval);
2339 return(xmlXPathCacheNewFloat(ctxt, val->floatval));
2548 ret = obj->floatval;
5156 ret->floatval = val;
5707 ret = xmlXPathCastNumberToString(val->floatval);
5753 res = xmlXPathCastNumberToString(val->floatval);
5870 ret = val->floatval;
5982 ret = xmlXPathCastNumberToBoolean(val->floatval);
6730 v = val->floatval;
6902 xmlXPathCastNumberToBoolean(arg2->floatval));
6932 xmlXPathCastNumberToBoolean(arg1->floatval));
6941 if (xmlXPathIsNaN(arg1->floatval) ||
6942 xmlXPathIsNaN(arg2->floatval)) {
6944 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
6945 if (xmlXPathIsInf(arg2->floatval) == 1)
6949 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
6950 floatval) == -1)
6954 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
6955 if (xmlXPathIsInf(arg1->floatval) == 1)
6959 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
6960 if (xmlXPathIsInf(arg1->floatval) == -1)
6965 ret = (arg1->floatval == arg2->floatval);
7002 if (xmlXPathIsNaN(arg1->floatval) ||
7003 xmlXPathIsNaN(arg2->floatval)) {
7005 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
7006 if (xmlXPathIsInf(arg2->floatval) == 1)
7010 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
7011 if (xmlXPathIsInf(arg2->floatval) == -1)
7015 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
7016 if (xmlXPathIsInf(arg1->floatval) == 1)
7020 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
7021 if (xmlXPathIsInf(arg1->floatval) == -1)
7026 ret = (arg1->floatval == arg2->floatval);
7120 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 0);
7205 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 1);
7312 if (xmlXPathIsNaN(arg1->floatval) || xmlXPathIsNaN(arg2->floatval)) {
7315 arg1i=xmlXPathIsInf(arg1->floatval);
7316 arg2i=xmlXPathIsInf(arg2->floatval);
7322 ret = (arg1->floatval < arg2->floatval);
7331 ret = (arg1->floatval <= arg2->floatval);
7341 ret = (arg1->floatval > arg2->floatval);
7350 ret = (arg1->floatval >= arg2->floatval);
7374 if (xmlXPathIsNaN(ctxt->value->floatval))
7375 ctxt->value->floatval=xmlXPathNAN;
7376 else if (xmlXPathIsInf(ctxt->value->floatval) == 1)
7377 ctxt->value->floatval=xmlXPathNINF;
7378 else if (xmlXPathIsInf(ctxt->value->floatval) == -1)
7379 ctxt->value->floatval=xmlXPathPINF;
7380 else if (ctxt->value->floatval == 0) {
7381 if (xmlXPathGetSign(ctxt->value->floatval) == 0)
7382 ctxt->value->floatval = xmlXPathNZERO;
7384 ctxt->value->floatval = 0;
7387 ctxt->value->floatval = - ctxt->value->floatval;
7410 ctxt->value->floatval += val;
7433 ctxt->value->floatval -= val;
7456 ctxt->value->floatval *= val;
7479 if (xmlXPathIsNaN(val) || xmlXPathIsNaN(ctxt->value->floatval))
7480 ctxt->value->floatval = xmlXPathNAN;
7482 if (ctxt->value->floatval == 0)
7483 ctxt->value->floatval = xmlXPathNAN;
7484 else if (ctxt->value->floatval > 0)
7485 ctxt->value->floatval = xmlXPathNINF;
7486 else if (ctxt->value->floatval < 0)
7487 ctxt->value->floatval = xmlXPathPINF;
7490 if (ctxt->value->floatval == 0)
7491 ctxt->value->floatval = xmlXPathNAN;
7492 else if (ctxt->value->floatval > 0)
7493 ctxt->value->floatval = xmlXPathPINF;
7494 else if (ctxt->value->floatval < 0)
7495 ctxt->value->floatval = xmlXPathNINF;
7497 ctxt->value->floatval /= val;
7520 arg1 = ctxt->value->floatval;
7522 ctxt->value->floatval = xmlXPathNAN;
7524 ctxt->value->floatval = fmod(arg1, arg2);
9056 le = len->floatval;
9063 in = start->floatval;
9582 XTRUNC(f, ctxt->value->floatval);
9583 if (f != ctxt->value->floatval) {
9584 if (ctxt->value->floatval > 0)
9585 ctxt->value->floatval = f;
9587 ctxt->value->floatval = f - 1;
9610 ctxt->value->floatval = ceil(ctxt->value->floatval);
9612 XTRUNC(f, ctxt->value->floatval);
9613 if (f != ctxt->value->floatval) {
9614 if (ctxt->value->floatval > 0)
9615 ctxt->value->floatval = f + 1;
9617 if (ctxt->value->floatval < 0 && f == 0)
9618 ctxt->value->floatval = xmlXPathNZERO;
9620 ctxt->value->floatval = f;
9646 if ((xmlXPathIsNaN(ctxt->value->floatval)) ||
9647 (xmlXPathIsInf(ctxt->value->floatval) == 1) ||
9648 (xmlXPathIsInf(ctxt->value->floatval) == -1) ||
9649 (ctxt->value->floatval == 0.0))
9652 XTRUNC(f, ctxt->value->floatval);
9653 if (ctxt->value->floatval < 0) {
9654 if (ctxt->value->floatval < f - 0.5)
9655 ctxt->value->floatval = f - 1;
9657 ctxt->value->floatval = f;
9658 if (ctxt->value->floatval == 0)
9659 ctxt->value->floatval = xmlXPathNZERO;
9661 if (ctxt->value->floatval < f + 0.5)
9662 ctxt->value->floatval = f;
9664 ctxt->value->floatval = f + 1;
11959 *maxPos = (int) ((xmlXPathObjectPtr) exprOp->value4)->floatval;
11961 if (((xmlXPathObjectPtr) exprOp->value4)->floatval ==
13549 (val->floatval == 1.0)) {
14478 return(res->floatval == ctxt->proximityPosition);
14518 return((res->floatval == ctxt->context->proximityPosition) &&
14519 (!xmlXPathIsNaN(res->floatval))); /* MSC pbm Mark Vakoc !*/
14521 return(res->floatval == ctxt->context->proximityPosition);