Lines Matching refs:u
65 m_exprValue->u.lval = l; in AstExpression()
79 m_exprValue->u.lval = l; in AstExpression()
93 m_exprValue->u.hval = h; in AstExpression()
107 m_exprValue->u.uhval = uh; in AstExpression()
121 m_exprValue->u.dval = d; in AstExpression()
165 if (ev->u.usval > SAL_MAX_INT16) in coerce_value()
167 ev->u.sval = (sal_Int16)ev->u.usval; in coerce_value()
171 if (ev->u.lval < SAL_MIN_INT16 || ev->u.lval > SAL_MAX_INT16) in coerce_value()
173 ev->u.sval = (sal_Int16)ev->u.lval; in coerce_value()
177 if (ev->u.ulval > SAL_MAX_INT16) in coerce_value()
179 ev->u.sval = (sal_Int16)ev->u.ulval; in coerce_value()
183 if (ev->u.hval < SAL_MIN_INT16 || ev->u.hval > SAL_MAX_INT16) in coerce_value()
185 ev->u.sval = (sal_Int16)ev->u.hval; in coerce_value()
189 if (ev->u.uhval > SAL_MAX_INT16) in coerce_value()
191 ev->u.sval = (sal_Int16)ev->u.uhval; in coerce_value()
195 ev->u.sval = (sal_Int16)ev->u.bval; in coerce_value()
199 if (ev->u.fval < SAL_MIN_INT16 || ev->u.fval > SAL_MAX_INT16) in coerce_value()
201 ev->u.sval = (sal_Int16)ev->u.fval; in coerce_value()
205 if (ev->u.dval < SAL_MIN_INT16 || ev->u.dval > SAL_MAX_INT16) in coerce_value()
207 ev->u.sval = (sal_Int16)ev->u.dval; in coerce_value()
211 ev->u.sval = (sal_Int16)ev->u.byval; in coerce_value()
222 if (ev->u.sval < 0) in coerce_value()
224 ev->u.usval = (sal_uInt16)ev->u.sval; in coerce_value()
230 if (ev->u.lval < 0 || ev->u.lval > SAL_MAX_UINT16) in coerce_value()
232 ev->u.usval = (sal_uInt16)ev->u.lval; in coerce_value()
236 if (ev->u.ulval > SAL_MAX_UINT16) in coerce_value()
238 ev->u.usval = (sal_uInt16)ev->u.ulval; in coerce_value()
242 if (ev->u.hval < 0 || ev->u.hval > SAL_MAX_UINT16) in coerce_value()
244 ev->u.usval = (sal_uInt16)ev->u.hval; in coerce_value()
248 if (ev->u.uhval > SAL_MAX_UINT16) in coerce_value()
250 ev->u.usval = (sal_uInt16)ev->u.uhval; in coerce_value()
254 ev->u.usval = (sal_uInt16)ev->u.bval; in coerce_value()
258 if (ev->u.fval < 0.0 || ev->u.fval > SAL_MAX_UINT16) in coerce_value()
260 ev->u.usval = (sal_uInt16)ev->u.fval; in coerce_value()
264 if (ev->u.dval < 0.0 || ev->u.dval > SAL_MAX_UINT16) in coerce_value()
266 ev->u.usval = (sal_uInt16)ev->u.dval; in coerce_value()
270 ev->u.usval = (sal_uInt16)ev->u.byval; in coerce_value()
281 ev->u.lval = (sal_Int32)ev->u.sval; in coerce_value()
285 ev->u.lval = (sal_Int32)ev->u.usval; in coerce_value()
291 if (ev->u.ulval > SAL_MAX_INT32) in coerce_value()
293 ev->u.lval = (sal_Int32)ev->u.ulval; in coerce_value()
297 if (ev->u.hval < SAL_MIN_INT32 || ev->u.hval > SAL_MAX_INT32) in coerce_value()
299 ev->u.lval = (sal_Int32)ev->u.hval; in coerce_value()
303 if (ev->u.uhval > SAL_MAX_INT32) in coerce_value()
305 ev->u.lval = (sal_Int32)ev->u.uhval; in coerce_value()
309 ev->u.lval = (sal_Int32)ev->u.bval; in coerce_value()
313 if (ev->u.fval < SAL_MIN_INT32 || ev->u.fval > SAL_MAX_INT32) in coerce_value()
315 ev->u.lval = (sal_Int32)ev->u.fval; in coerce_value()
319 if (ev->u.dval < SAL_MIN_INT32 || ev->u.dval > SAL_MAX_INT32) in coerce_value()
321 ev->u.lval = (sal_Int32)ev->u.dval; in coerce_value()
325 ev->u.lval = (sal_Int32) ev->u.byval; in coerce_value()
336 if (ev->u.sval < 0) in coerce_value()
338 ev->u.ulval = (sal_uInt32)ev->u.sval; in coerce_value()
342 ev->u.ulval = (sal_uInt32)ev->u.usval; in coerce_value()
346 if (ev->u.lval < 0) in coerce_value()
348 ev->u.ulval = (sal_uInt32)ev->u.lval; in coerce_value()
354 if (ev->u.hval < 0 || ev->u.hval > SAL_MAX_UINT32) in coerce_value()
356 ev->u.lval = (sal_uInt32)ev->u.hval; in coerce_value()
360 if (ev->u.uhval > SAL_MAX_UINT32) in coerce_value()
362 ev->u.ulval = (sal_uInt32)ev->u.uhval; in coerce_value()
366 ev->u.ulval = (sal_uInt32)ev->u.bval; in coerce_value()
370 if (ev->u.fval < 0.0 || ev->u.fval > SAL_MAX_UINT32) in coerce_value()
372 ev->u.ulval = (sal_uInt32)ev->u.fval; in coerce_value()
376 if (ev->u.dval < 0.0 || ev->u.dval > SAL_MAX_UINT32) in coerce_value()
378 ev->u.ulval = (sal_uInt32)ev->u.dval; in coerce_value()
382 ev->u.ulval = (sal_uInt32)ev->u.byval; in coerce_value()
393 ev->u.hval = (sal_Int64)ev->u.sval; in coerce_value()
397 ev->u.hval = (sal_Int64)ev->u.usval; in coerce_value()
401 ev->u.hval = (sal_Int64)ev->u.lval; in coerce_value()
405 ev->u.hval = (sal_Int64)ev->u.ulval; in coerce_value()
411 if (ev->u.uhval > SAL_MAX_INT64) in coerce_value()
413 ev->u.hval = (sal_Int64)ev->u.uhval; in coerce_value()
417 ev->u.hval = (sal_Int64)ev->u.bval; in coerce_value()
421 if (ev->u.fval < SAL_MIN_INT64 || ev->u.fval > SAL_MAX_INT64) in coerce_value()
423 ev->u.hval = (sal_Int64)ev->u.fval; in coerce_value()
427 if (ev->u.dval < SAL_MIN_INT64 || ev->u.dval > SAL_MAX_INT64) in coerce_value()
429 ev->u.hval = (sal_Int64)ev->u.dval; in coerce_value()
433 ev->u.hval = (sal_Int64)ev->u.byval; in coerce_value()
444 if (ev->u.sval < 0) in coerce_value()
446 ev->u.uhval = (sal_uInt64)ev->u.sval; in coerce_value()
450 ev->u.uhval = (sal_uInt64)ev->u.usval; in coerce_value()
454 if (ev->u.lval < 0) in coerce_value()
456 ev->u.uhval = (sal_uInt64)ev->u.lval; in coerce_value()
460 ev->u.uhval = (sal_uInt64)ev->u.ulval; in coerce_value()
464 if (ev->u.hval < 0) in coerce_value()
466 ev->u.uhval = (sal_uInt64)ev->u.hval; in coerce_value()
472 ev->u.uhval = (sal_uInt64)ev->u.bval; in coerce_value()
476 if (ev->u.fval < 0.0 || ev->u.fval > SAL_MAX_UINT64) in coerce_value()
478 ev->u.uhval = (sal_uInt64)ev->u.fval; in coerce_value()
482 if (ev->u.dval < 0.0 || ev->u.dval > SAL_MAX_UINT64) in coerce_value()
484 ev->u.uhval = (sal_uInt64)ev->u.dval; in coerce_value()
488 ev->u.uhval = (sal_uInt64)ev->u.byval; in coerce_value()
499 ev->u.bval = (ev->u.sval == 0) ? sal_False : sal_True; in coerce_value()
503 ev->u.bval = (ev->u.usval == 0) ? sal_False : sal_True; in coerce_value()
507 ev->u.bval = (ev->u.lval == 0) ? sal_False : sal_True; in coerce_value()
511 ev->u.bval = (ev->u.ulval == 0) ? sal_False : sal_True; in coerce_value()
515 ev->u.bval = (ev->u.hval == 0) ? sal_False : sal_True; in coerce_value()
519 ev->u.bval = (ev->u.uhval == 0) ? sal_False : sal_True; in coerce_value()
525 ev->u.bval = (ev->u.fval == 0.0) ? sal_False : sal_True; in coerce_value()
529 ev->u.bval = (ev->u.dval == 0.0) ? sal_False : sal_True; in coerce_value()
533 ev->u.bval = (ev->u.byval == 0) ? sal_False : sal_True; in coerce_value()
544 ev->u.fval = (float)ev->u.sval; in coerce_value()
548 ev->u.fval = (float)ev->u.usval; in coerce_value()
552 ev->u.fval = (float)ev->u.lval; in coerce_value()
556 ev->u.fval = (float)ev->u.ulval; in coerce_value()
560 ev->u.fval = (float)ev->u.hval; in coerce_value()
564 if ((float)ev->u.ulval > FLT_MAX) in coerce_value()
566 ev->u.fval = (float)ev->u.ulval; in coerce_value()
570 ev->u.fval = (ev->u.bval == sal_True) ? 1.0f : 0.0f; in coerce_value()
576 if ((float)ev->u.dval > FLT_MAX || (float)ev->u.dval < -FLT_MAX) in coerce_value()
578 ev->u.fval = (float)ev->u.dval; in coerce_value()
582 ev->u.fval = (float)ev->u.byval; in coerce_value()
593 ev->u.dval = (double)ev->u.sval; in coerce_value()
597 ev->u.dval = (double)ev->u.usval; in coerce_value()
601 ev->u.dval = (double)ev->u.lval; in coerce_value()
605 ev->u.dval = (double)ev->u.ulval; in coerce_value()
609 ev->u.dval = (double)ev->u.hval; in coerce_value()
613 if ((double)ev->u.dval > FLT_MAX || (double)ev->u.dval < -FLT_MAX) in coerce_value()
615 ev->u.dval = (double)ev->u.ulval; in coerce_value()
619 ev->u.dval = (ev->u.bval == sal_True) ? 1.0 : 0.0; in coerce_value()
623 ev->u.dval = (double)ev->u.fval; in coerce_value()
629 ev->u.dval = (double)ev->u.byval; in coerce_value()
640 if (ev->u.sval < SAL_MIN_INT8 || ev->u.sval > SAL_MAX_UINT8) in coerce_value()
642 ev->u.byval = (sal_uChar)ev->u.sval; in coerce_value()
646 if (ev->u.usval > SAL_MAX_UINT8) in coerce_value()
648 ev->u.byval = (sal_uChar)ev->u.usval; in coerce_value()
652 if (ev->u.lval < SAL_MIN_INT8 || ev->u.lval > SAL_MAX_UINT8) in coerce_value()
654 ev->u.byval = (sal_uChar) ev->u.lval; in coerce_value()
658 if (ev->u.ulval > SAL_MAX_UINT8) in coerce_value()
660 ev->u.byval = (sal_uChar) ev->u.ulval; in coerce_value()
664 if (ev->u.hval < SAL_MIN_INT8 || ev->u.hval > SAL_MAX_UINT8) in coerce_value()
666 ev->u.byval = (sal_uChar) ev->u.hval; in coerce_value()
670 if (ev->u.uhval > SAL_MAX_UINT8) in coerce_value()
672 ev->u.byval = (sal_uChar) ev->u.uhval; in coerce_value()
676 ev->u.byval = (ev->u.bval == sal_False) ? 1 : 0; in coerce_value()
680 if (ev->u.fval < SAL_MIN_INT8 || ev->u.fval > SAL_MAX_UINT8) in coerce_value()
682 ev->u.byval = (sal_uChar) ev->u.fval; in coerce_value()
686 if (ev->u.dval < SAL_MIN_INT8 || ev->u.dval > SAL_MAX_UINT8) in coerce_value()
688 ev->u.byval = (sal_uChar) ev->u.dval; in coerce_value()
749 copy->u.sval = m_exprValue->u.sval; in coerce()
752 copy->u.usval = m_exprValue->u.usval; in coerce()
755 copy->u.lval = m_exprValue->u.lval; in coerce()
758 copy->u.ulval = m_exprValue->u.ulval; in coerce()
761 copy->u.hval = m_exprValue->u.hval; in coerce()
764 copy->u.uhval = m_exprValue->u.uhval; in coerce()
767 copy->u.bval = m_exprValue->u.bval; in coerce()
770 copy->u.fval = m_exprValue->u.fval; in coerce()
773 copy->u.dval = m_exprValue->u.dval; in coerce()
776 copy->u.byval = m_exprValue->u.byval; in coerce()
811 return (m_exprValue->u.sval == pExpr->getExprValue()->u.sval) ? sal_True : sal_False; in operator ==()
813 return (m_exprValue->u.usval == pExpr->getExprValue()->u.usval) ? sal_True : sal_False; in operator ==()
815 return (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? sal_True : sal_False; in operator ==()
817 return (m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval) ? sal_True : sal_False; in operator ==()
819 return (m_exprValue->u.hval == pExpr->getExprValue()->u.hval) ? sal_True : sal_False; in operator ==()
821 return (m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval) ? sal_True : sal_False; in operator ==()
823 return (m_exprValue->u.fval == pExpr->getExprValue()->u.fval) ? sal_True : sal_False; in operator ==()
825 return (m_exprValue->u.dval == pExpr->getExprValue()->u.dval) ? sal_True : sal_False; in operator ==()
827 return (m_exprValue->u.byval == pExpr->getExprValue()->u.byval) ? sal_True : sal_False; in operator ==()
829 return (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? sal_True : sal_False; in operator ==()
851 return (m_exprValue->u.sval == pExpr->getExprValue()->u.sval) ? sal_True : sal_False; in compare()
853 return (m_exprValue->u.usval == pExpr->getExprValue()->u.usval) ? sal_True : sal_False; in compare()
855 return (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? sal_True : sal_False; in compare()
857 return (m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval) ? sal_True : sal_False; in compare()
859 return (m_exprValue->u.hval == pExpr->getExprValue()->u.hval) ? sal_True : sal_False; in compare()
861 return (m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval) ? sal_True : sal_False; in compare()
863 return (m_exprValue->u.fval == pExpr->getExprValue()->u.fval) ? sal_True : sal_False; in compare()
865 return (m_exprValue->u.dval == pExpr->getExprValue()->u.dval) ? sal_True : sal_False; in compare()
867 return (m_exprValue->u.byval == pExpr->getExprValue()->u.byval) ? sal_True : sal_False; in compare()
869 return (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? sal_True : sal_False; in compare()
956 if (m_subExpr2->getExprValue()->u.hval == 0) in eval_bin_op()
958 retval->u.hval = m_subExpr1->getExprValue()->u.hval % m_subExpr2->getExprValue()->u.hval; in eval_bin_op()
961 retval->u.dval = m_subExpr1->getExprValue()->u.dval + m_subExpr2->getExprValue()->u.dval; in eval_bin_op()
964 retval->u.dval = m_subExpr1->getExprValue()->u.dval - m_subExpr2->getExprValue()->u.dval; in eval_bin_op()
967 retval->u.dval = m_subExpr1->getExprValue()->u.dval * m_subExpr2->getExprValue()->u.dval; in eval_bin_op()
970 if (m_subExpr2->getExprValue()->u.dval == 0.0) in eval_bin_op()
972 retval->u.dval = m_subExpr1->getExprValue()->u.dval / m_subExpr2->getExprValue()->u.dval; in eval_bin_op()
1006 retval->u.lval = m_subExpr1->getExprValue()->u.lval | m_subExpr2->getExprValue()->u.lval; in eval_bit_op()
1009 retval->u.lval = m_subExpr1->getExprValue()->u.lval ^ m_subExpr2->getExprValue()->u.lval; in eval_bit_op()
1012 retval->u.lval = m_subExpr1->getExprValue()->u.lval & m_subExpr2->getExprValue()->u.lval; in eval_bit_op()
1015 retval->u.lval = m_subExpr1->getExprValue()->u.lval << m_subExpr2->getExprValue()->u.lval; in eval_bit_op()
1018 retval->u.lval = m_subExpr1->getExprValue()->u.lval >> m_subExpr2->getExprValue()->u.lval; in eval_bit_op()
1049 retval->u.lval = m_subExpr1->getExprValue()->u.lval; in eval_un_op()
1052 retval->u.lval = -(m_subExpr1->getExprValue()->u.lval); in eval_un_op()
1058 retval->u.lval = ~m_subExpr1->getExprValue()->u.lval; in eval_un_op()
1133 return OString::valueOf((sal_Int32)m_exprValue->u.sval); in toString()
1135 return OString::valueOf((sal_Int32)m_exprValue->u.usval); in toString()
1137 return OString::valueOf(m_exprValue->u.lval); in toString()
1139 return OString::valueOf((sal_Int32)m_exprValue->u.ulval); in toString()
1141 return OString::valueOf(m_exprValue->u.hval); in toString()
1143 return OString::valueOf((sal_Int64)m_exprValue->u.uhval); in toString()
1145 return OString::valueOf(m_exprValue->u.fval); in toString()
1147 return OString::valueOf(m_exprValue->u.dval); in toString()
1149 return OString::valueOf((sal_Int32)m_exprValue->u.byval); in toString()
1151 if ( m_exprValue->u.lval == 0) in toString()