Lines Matching refs:floatval
1407 switch (xmlXPathIsInf(cur->floatval)) { in xmlXPathDebugDumpObject()
1415 if (xmlXPathIsNaN(cur->floatval)) { in xmlXPathDebugDumpObject()
1417 } else if (cur->floatval == 0 && xmlXPathGetSign(cur->floatval) != 0) { in xmlXPathDebugDumpObject()
1420 fprintf(output, "Object is a number : %0g\n", cur->floatval); in xmlXPathDebugDumpObject()
2615 ret->floatval = val; in xmlXPathCacheNewFloat()
2629 ret->floatval = val; in xmlXPathCacheNewFloat()
2674 res = xmlXPathCastNumberToString(val->floatval); in xmlXPathCacheConvertString()
2715 return(xmlXPathCacheNewFloat(ctxt, val->floatval)); in xmlXPathCacheObjectCopy()
2929 ret = obj->floatval; in xmlXPathPopNumber()
5231 ret->floatval = val; in xmlXPathNewFloat()
5782 ret = xmlXPathCastNumberToString(val->floatval); in xmlXPathCastToString()
5828 res = xmlXPathCastNumberToString(val->floatval); in xmlXPathConvertString()
5945 ret = val->floatval; in xmlXPathCastToNumber()
6057 ret = xmlXPathCastNumberToBoolean(val->floatval); in xmlXPathCastToBoolean()
6805 v = val->floatval; in xmlXPathEqualNodeSetFloat()
6977 xmlXPathCastNumberToBoolean(arg2->floatval)); in xmlXPathEqualValuesCommon()
7007 xmlXPathCastNumberToBoolean(arg1->floatval)); in xmlXPathEqualValuesCommon()
7016 if (xmlXPathIsNaN(arg1->floatval) || in xmlXPathEqualValuesCommon()
7017 xmlXPathIsNaN(arg2->floatval)) { in xmlXPathEqualValuesCommon()
7019 } else if (xmlXPathIsInf(arg1->floatval) == 1) { in xmlXPathEqualValuesCommon()
7020 if (xmlXPathIsInf(arg2->floatval) == 1) in xmlXPathEqualValuesCommon()
7024 } else if (xmlXPathIsInf(arg1->floatval) == -1) { in xmlXPathEqualValuesCommon()
7025 if (xmlXPathIsInf(arg2->floatval) == -1) in xmlXPathEqualValuesCommon()
7029 } else if (xmlXPathIsInf(arg2->floatval) == 1) { in xmlXPathEqualValuesCommon()
7030 if (xmlXPathIsInf(arg1->floatval) == 1) in xmlXPathEqualValuesCommon()
7034 } else if (xmlXPathIsInf(arg2->floatval) == -1) { in xmlXPathEqualValuesCommon()
7035 if (xmlXPathIsInf(arg1->floatval) == -1) in xmlXPathEqualValuesCommon()
7040 ret = (arg1->floatval == arg2->floatval); in xmlXPathEqualValuesCommon()
7077 if (xmlXPathIsNaN(arg1->floatval) || in xmlXPathEqualValuesCommon()
7078 xmlXPathIsNaN(arg2->floatval)) { in xmlXPathEqualValuesCommon()
7080 } else if (xmlXPathIsInf(arg1->floatval) == 1) { in xmlXPathEqualValuesCommon()
7081 if (xmlXPathIsInf(arg2->floatval) == 1) in xmlXPathEqualValuesCommon()
7085 } else if (xmlXPathIsInf(arg1->floatval) == -1) { in xmlXPathEqualValuesCommon()
7086 if (xmlXPathIsInf(arg2->floatval) == -1) in xmlXPathEqualValuesCommon()
7090 } else if (xmlXPathIsInf(arg2->floatval) == 1) { in xmlXPathEqualValuesCommon()
7091 if (xmlXPathIsInf(arg1->floatval) == 1) in xmlXPathEqualValuesCommon()
7095 } else if (xmlXPathIsInf(arg2->floatval) == -1) { in xmlXPathEqualValuesCommon()
7096 if (xmlXPathIsInf(arg1->floatval) == -1) in xmlXPathEqualValuesCommon()
7101 ret = (arg1->floatval == arg2->floatval); in xmlXPathEqualValuesCommon()
7195 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 0); in xmlXPathEqualValues()
7280 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 1); in xmlXPathNotEqualValues()
7387 if (xmlXPathIsNaN(arg1->floatval) || xmlXPathIsNaN(arg2->floatval)) { in xmlXPathCompareValues()
7390 arg1i=xmlXPathIsInf(arg1->floatval); in xmlXPathCompareValues()
7391 arg2i=xmlXPathIsInf(arg2->floatval); in xmlXPathCompareValues()
7397 ret = (arg1->floatval < arg2->floatval); in xmlXPathCompareValues()
7406 ret = (arg1->floatval <= arg2->floatval); in xmlXPathCompareValues()
7416 ret = (arg1->floatval > arg2->floatval); in xmlXPathCompareValues()
7425 ret = (arg1->floatval >= arg2->floatval); in xmlXPathCompareValues()
7449 if (xmlXPathIsNaN(ctxt->value->floatval)) in xmlXPathValueFlipSign()
7450 ctxt->value->floatval=xmlXPathNAN; in xmlXPathValueFlipSign()
7451 else if (xmlXPathIsInf(ctxt->value->floatval) == 1) in xmlXPathValueFlipSign()
7452 ctxt->value->floatval=xmlXPathNINF; in xmlXPathValueFlipSign()
7453 else if (xmlXPathIsInf(ctxt->value->floatval) == -1) in xmlXPathValueFlipSign()
7454 ctxt->value->floatval=xmlXPathPINF; in xmlXPathValueFlipSign()
7455 else if (ctxt->value->floatval == 0) { in xmlXPathValueFlipSign()
7456 if (xmlXPathGetSign(ctxt->value->floatval) == 0) in xmlXPathValueFlipSign()
7457 ctxt->value->floatval = xmlXPathNZERO; in xmlXPathValueFlipSign()
7459 ctxt->value->floatval = 0; in xmlXPathValueFlipSign()
7462 ctxt->value->floatval = - ctxt->value->floatval; in xmlXPathValueFlipSign()
7485 ctxt->value->floatval += val; in xmlXPathAddValues()
7508 ctxt->value->floatval -= val; in xmlXPathSubValues()
7531 ctxt->value->floatval *= val; in xmlXPathMultValues()
7554 if (xmlXPathIsNaN(val) || xmlXPathIsNaN(ctxt->value->floatval)) in xmlXPathDivValues()
7555 ctxt->value->floatval = xmlXPathNAN; in xmlXPathDivValues()
7557 if (ctxt->value->floatval == 0) in xmlXPathDivValues()
7558 ctxt->value->floatval = xmlXPathNAN; in xmlXPathDivValues()
7559 else if (ctxt->value->floatval > 0) in xmlXPathDivValues()
7560 ctxt->value->floatval = xmlXPathNINF; in xmlXPathDivValues()
7561 else if (ctxt->value->floatval < 0) in xmlXPathDivValues()
7562 ctxt->value->floatval = xmlXPathPINF; in xmlXPathDivValues()
7565 if (ctxt->value->floatval == 0) in xmlXPathDivValues()
7566 ctxt->value->floatval = xmlXPathNAN; in xmlXPathDivValues()
7567 else if (ctxt->value->floatval > 0) in xmlXPathDivValues()
7568 ctxt->value->floatval = xmlXPathPINF; in xmlXPathDivValues()
7569 else if (ctxt->value->floatval < 0) in xmlXPathDivValues()
7570 ctxt->value->floatval = xmlXPathNINF; in xmlXPathDivValues()
7572 ctxt->value->floatval /= val; in xmlXPathDivValues()
7595 arg1 = ctxt->value->floatval; in xmlXPathModValues()
7597 ctxt->value->floatval = xmlXPathNAN; in xmlXPathModValues()
7599 ctxt->value->floatval = fmod(arg1, arg2); in xmlXPathModValues()
9141 le = len->floatval; in xmlXPathSubstringFunction()
9148 in = start->floatval; in xmlXPathSubstringFunction()
9667 XTRUNC(f, ctxt->value->floatval); in xmlXPathFloorFunction()
9668 if (f != ctxt->value->floatval) { in xmlXPathFloorFunction()
9669 if (ctxt->value->floatval > 0) in xmlXPathFloorFunction()
9670 ctxt->value->floatval = f; in xmlXPathFloorFunction()
9672 ctxt->value->floatval = f - 1; in xmlXPathFloorFunction()
9695 ctxt->value->floatval = ceil(ctxt->value->floatval); in xmlXPathCeilingFunction()
9697 XTRUNC(f, ctxt->value->floatval); in xmlXPathCeilingFunction()
9698 if (f != ctxt->value->floatval) { in xmlXPathCeilingFunction()
9699 if (ctxt->value->floatval > 0) in xmlXPathCeilingFunction()
9700 ctxt->value->floatval = f + 1; in xmlXPathCeilingFunction()
9702 if (ctxt->value->floatval < 0 && f == 0) in xmlXPathCeilingFunction()
9703 ctxt->value->floatval = xmlXPathNZERO; in xmlXPathCeilingFunction()
9705 ctxt->value->floatval = f; in xmlXPathCeilingFunction()
9731 if ((xmlXPathIsNaN(ctxt->value->floatval)) || in xmlXPathRoundFunction()
9732 (xmlXPathIsInf(ctxt->value->floatval) == 1) || in xmlXPathRoundFunction()
9733 (xmlXPathIsInf(ctxt->value->floatval) == -1) || in xmlXPathRoundFunction()
9734 (ctxt->value->floatval == 0.0)) in xmlXPathRoundFunction()
9737 XTRUNC(f, ctxt->value->floatval); in xmlXPathRoundFunction()
9738 if (ctxt->value->floatval < 0) { in xmlXPathRoundFunction()
9739 if (ctxt->value->floatval < f - 0.5) in xmlXPathRoundFunction()
9740 ctxt->value->floatval = f - 1; in xmlXPathRoundFunction()
9742 ctxt->value->floatval = f; in xmlXPathRoundFunction()
9743 if (ctxt->value->floatval == 0) in xmlXPathRoundFunction()
9744 ctxt->value->floatval = xmlXPathNZERO; in xmlXPathRoundFunction()
9746 if (ctxt->value->floatval < f + 0.5) in xmlXPathRoundFunction()
9747 ctxt->value->floatval = f; in xmlXPathRoundFunction()
9749 ctxt->value->floatval = f + 1; in xmlXPathRoundFunction()
12067 *maxPos = (int) ((xmlXPathObjectPtr) exprOp->value4)->floatval; in xmlXPathIsPositionalPredicate()
12069 if (((xmlXPathObjectPtr) exprOp->value4)->floatval == in xmlXPathIsPositionalPredicate()
13664 (val->floatval == 1.0)) { in xmlXPathCompOpEval()
14607 return(res->floatval == ctxt->proximityPosition); in xmlXPathEvalPredicate()
14647 return((res->floatval == ctxt->context->proximityPosition) && in xmlXPathEvaluatePredicateResult()
14648 (!xmlXPathIsNaN(res->floatval))); /* MSC pbm Mark Vakoc !*/ in xmlXPathEvaluatePredicateResult()
14650 return(res->floatval == ctxt->context->proximityPosition); in xmlXPathEvaluatePredicateResult()