Lines Matching refs:unionArray
727 ConstantUnion* unionArray; in addSwizzle() local
730 unionArray = new ConstantUnion[1]; in addSwizzle()
731 unionArray->setIConst(fields.offsets[i]); in addSwizzle()
732 constIntNode = addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), line); in addSwizzle()
1267 float ComputeDeterminant(int size, ConstantUnion* unionArray) in ComputeDeterminant() argument
1272 return determinant2(unionArray[0].getFConst(), in ComputeDeterminant()
1273 unionArray[1].getFConst(), in ComputeDeterminant()
1274 unionArray[2].getFConst(), in ComputeDeterminant()
1275 unionArray[3].getFConst()); in ComputeDeterminant()
1277 return determinant3(unionArray[0].getFConst(), in ComputeDeterminant()
1278 unionArray[1].getFConst(), in ComputeDeterminant()
1279 unionArray[2].getFConst(), in ComputeDeterminant()
1280 unionArray[3].getFConst(), in ComputeDeterminant()
1281 unionArray[4].getFConst(), in ComputeDeterminant()
1282 unionArray[5].getFConst(), in ComputeDeterminant()
1283 unionArray[6].getFConst(), in ComputeDeterminant()
1284 unionArray[7].getFConst(), in ComputeDeterminant()
1285 unionArray[8].getFConst()); in ComputeDeterminant()
1287 return determinant4(unionArray[0].getFConst(), in ComputeDeterminant()
1288 unionArray[1].getFConst(), in ComputeDeterminant()
1289 unionArray[2].getFConst(), in ComputeDeterminant()
1290 unionArray[3].getFConst(), in ComputeDeterminant()
1291 unionArray[4].getFConst(), in ComputeDeterminant()
1292 unionArray[5].getFConst(), in ComputeDeterminant()
1293 unionArray[6].getFConst(), in ComputeDeterminant()
1294 unionArray[7].getFConst(), in ComputeDeterminant()
1295 unionArray[8].getFConst(), in ComputeDeterminant()
1296 unionArray[9].getFConst(), in ComputeDeterminant()
1297 unionArray[10].getFConst(), in ComputeDeterminant()
1298 unionArray[11].getFConst(), in ComputeDeterminant()
1299 unionArray[12].getFConst(), in ComputeDeterminant()
1300 unionArray[13].getFConst(), in ComputeDeterminant()
1301 unionArray[14].getFConst(), in ComputeDeterminant()
1302 unionArray[15].getFConst()); in ComputeDeterminant()
1309 ConstantUnion* CreateInverse(TIntermConstantUnion* node, ConstantUnion* unionArray) in CreateInverse() argument
1313 float determinant = ComputeDeterminant(size, unionArray); in CreateInverse()
1322 float m00 = unionArray[0].getFConst(); // Matrix is: in CreateInverse()
1323 float m01 = unionArray[1].getFConst(); // (m00, m01) in CreateInverse()
1324 float m10 = unionArray[2].getFConst(); // (m10, m11) in CreateInverse()
1325 float m11 = unionArray[3].getFConst(); in CreateInverse()
1334 float m00 = unionArray[0].getFConst(); // Matrix is: in CreateInverse()
1335 float m01 = unionArray[1].getFConst(); // (m00, m01, m02) in CreateInverse()
1336 float m02 = unionArray[2].getFConst(); // (m10, m11, m12) in CreateInverse()
1337 float m10 = unionArray[3].getFConst(); // (m20, m21, m22) in CreateInverse()
1338 float m11 = unionArray[4].getFConst(); in CreateInverse()
1339 float m12 = unionArray[5].getFConst(); in CreateInverse()
1340 float m20 = unionArray[6].getFConst(); in CreateInverse()
1341 float m21 = unionArray[7].getFConst(); in CreateInverse()
1342 float m22 = unionArray[8].getFConst(); in CreateInverse()
1356 float m00 = unionArray[0].getFConst(); // Matrix is: in CreateInverse()
1357 float m01 = unionArray[1].getFConst(); // (m00, m01, m02, m03) in CreateInverse()
1358 float m02 = unionArray[2].getFConst(); // (m10, m11, m12, m13) in CreateInverse()
1359 float m03 = unionArray[3].getFConst(); // (m20, m21, m22, m23) in CreateInverse()
1360 float m10 = unionArray[4].getFConst(); // (m30, m31, m32, m33) in CreateInverse()
1361 float m11 = unionArray[5].getFConst(); in CreateInverse()
1362 float m12 = unionArray[6].getFConst(); in CreateInverse()
1363 float m13 = unionArray[7].getFConst(); in CreateInverse()
1364 float m20 = unionArray[8].getFConst(); in CreateInverse()
1365 float m21 = unionArray[9].getFConst(); in CreateInverse()
1366 float m22 = unionArray[10].getFConst(); in CreateInverse()
1367 float m23 = unionArray[11].getFConst(); in CreateInverse()
1368 float m30 = unionArray[12].getFConst(); in CreateInverse()
1369 float m31 = unionArray[13].getFConst(); in CreateInverse()
1370 float m32 = unionArray[14].getFConst(); in CreateInverse()
1371 float m33 = unionArray[15].getFConst(); in CreateInverse()
1406 ConstantUnion *unionArray = getUnionArrayPointer(); in fold() local
1422 unionArray = new ConstantUnion[constantNode->getType().getObjectSize()]; in fold()
1424 unionArray[i] = *getUnionArrayPointer(); in fold()
1437 tempConstArray[i] = unionArray[i] + rightUnionArray[i]; in fold()
1444 tempConstArray[i] = unionArray[i] - rightUnionArray[i]; in fold()
1454 tempConstArray[i] = unionArray[i] * rightUnionArray[i]; in fold()
1479 …ow].setFConst(tempConstArray[tempNumRows * column + row].getFConst() + unionArray[i * leftNumRows … in fold()
1496 …tempConstArray[leftSize * column + row].setFConst(unionArray[row].getFConst() * rightUnionArray[co… in fold()
1560 tempConstArray[i].setFConst(unionArray[i].getFConst() / rightUnionArray[i].getFConst()); in fold()
1570 tempConstArray[i].setIConst(unionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold()
1573 tempConstArray[i].setIConst(unionArray[i].getIConst() % rightUnionArray[i].getIConst()); in fold()
1583 tempConstArray[i].setUConst(unionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold()
1586 tempConstArray[i].setUConst(unionArray[i].getUConst() % rightUnionArray[i].getUConst()); in fold()
1609 …tempConstArray[i].setFConst(tempConstArray[i].getFConst() + ((unionArray[j*rows + i].getFConst()) … in fold()
1630 …tempConstArray[i].setFConst(tempConstArray[i].getFConst() + ((unionArray[j].getFConst()) * rightUn… in fold()
1643 tempConstArray[i] = unionArray[i] && rightUnionArray[i]; in fold()
1651 tempConstArray[i] = unionArray[i] || rightUnionArray[i]; in fold()
1660 …case EbtBool: tempConstArray[i].setBConst((unionArray[i] == rightUnionArray[i]) ? false : true); b… in fold()
1669 tempConstArray[i] = unionArray[i] & rightUnionArray[i]; in fold()
1674 tempConstArray[i] = unionArray[i] ^ rightUnionArray[i]; in fold()
1679 tempConstArray[i] = unionArray[i] | rightUnionArray[i]; in fold()
1684 tempConstArray[i] = unionArray[i] << rightUnionArray[i]; in fold()
1689 tempConstArray[i] = unionArray[i] >> rightUnionArray[i]; in fold()
1695 tempConstArray[i].setBConst(unionArray[i] < rightUnionArray[i]); in fold()
1701 tempConstArray[i].setBConst(unionArray[i] > rightUnionArray[i]); in fold()
1707 tempConstArray[i].setBConst(unionArray[i] <= rightUnionArray[i]); in fold()
1713 tempConstArray[i].setBConst(unionArray[i] >= rightUnionArray[i]); in fold()
1720 …ConstArray->setBConst(CompareStructure(node->getType(), node->getUnionArrayPointer(), unionArray)); in fold()
1724 if (unionArray[i] != rightUnionArray[i]) { in fold()
1741 …onstArray->setBConst(!CompareStructure(node->getType(), node->getUnionArrayPointer(), unionArray)); in fold()
1745 if (unionArray[i] != rightUnionArray[i]) { in fold()
1761 tempConstArray[i] = unionArray[i] > rightUnionArray[i] ? unionArray[i] : rightUnionArray[i]; in fold()
1768 tempConstArray[i] = unionArray[i] < rightUnionArray[i] ? unionArray[i] : rightUnionArray[i]; in fold()
1790 case EbtFloat: tempConstArray[i].setFConst(-unionArray[i].getFConst()); break; in fold()
1791 case EbtInt: tempConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
1799 case EbtBool: tempConstArray[i].setBConst(!unionArray[i].getBConst()); break; in fold()
1807 case EbtInt: tempConstArray[i].setIConst(~unionArray[i].getIConst()); break; in fold()
1808 case EbtUInt: tempConstArray[i].setUConst(~unionArray[i].getUConst()); break; in fold()
1816 case EbtFloat: tempConstArray[i].setFConst(unionArray[i].getFConst() * 1.74532925e-2f); break; in fold()
1824 case EbtFloat: tempConstArray[i].setFConst(unionArray[i].getFConst() * 5.72957795e+1f); break; in fold()
1832 case EbtFloat: tempConstArray[i].setFConst(sinf(unionArray[i].getFConst())); break; in fold()
1840 case EbtFloat: tempConstArray[i].setFConst(cosf(unionArray[i].getFConst())); break; in fold()
1848 case EbtFloat: tempConstArray[i].setFConst(tanf(unionArray[i].getFConst())); break; in fold()
1856 case EbtFloat: tempConstArray[i].setFConst(asinf(unionArray[i].getFConst())); break; in fold()
1864 case EbtFloat: tempConstArray[i].setFConst(acosf(unionArray[i].getFConst())); break; in fold()
1872 case EbtFloat: tempConstArray[i].setFConst(atanf(unionArray[i].getFConst())); break; in fold()
1880 case EbtFloat: tempConstArray[i].setFConst(sinhf(unionArray[i].getFConst())); break; in fold()
1888 case EbtFloat: tempConstArray[i].setFConst(coshf(unionArray[i].getFConst())); break; in fold()
1896 case EbtFloat: tempConstArray[i].setFConst(tanhf(unionArray[i].getFConst())); break; in fold()
1904 case EbtFloat: tempConstArray[i].setFConst(asinhf(unionArray[i].getFConst())); break; in fold()
1912 case EbtFloat: tempConstArray[i].setFConst(acoshf(unionArray[i].getFConst())); break; in fold()
1920 case EbtFloat: tempConstArray[i].setFConst(atanhf(unionArray[i].getFConst())); break; in fold()
1928 case EbtFloat: tempConstArray[i].setFConst(logf(unionArray[i].getFConst())); break; in fold()
1936 case EbtFloat: tempConstArray[i].setFConst(sw::log2(unionArray[i].getFConst())); break; in fold()
1944 case EbtFloat: tempConstArray[i].setFConst(expf(unionArray[i].getFConst())); break; in fold()
1952 case EbtFloat: tempConstArray[i].setFConst(exp2f(unionArray[i].getFConst())); break; in fold()
1960 case EbtFloat: tempConstArray[i].setFConst(sqrtf(unionArray[i].getFConst())); break; in fold()
1968 case EbtFloat: tempConstArray[i].setFConst(1.0f / sqrtf(unionArray[i].getFConst())); break; in fold()
1977 tempConstArray[i].setIConst(sw::bit_cast<int>(unionArray[i].getFConst())); in fold()
1989 tempConstArray[i].setUConst(sw::bit_cast<unsigned int>(unionArray[i].getFConst())); in fold()
2000 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getIConst())); in fold()
2011 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getUConst())); in fold()