void testTortureExecute (void) { ieq (1, 4, 0); ieq (3, 3, 1); ieq (5, 2, 0); ine (1, 4, 1); ine (3, 3, 0); ine (5, 2, 1); ilt (1, 4, 1); ilt (3, 3, 0); ilt (5, 2, 0); ile (1, 4, 1); ile (3, 3, 1); ile (5, 2, 0); igt (1, 4, 0); igt (3, 3, 0); igt (5, 2, 1); ige (1, 4, 0); ige (3, 3, 1); ige (5, 2, 1); return; }
int main () { pinf = __builtin_inf (); ninf = -__builtin_inf (); NaN = __builtin_nan (""); iuneq (ninf, pinf, 0); iuneq (NaN, NaN, 1); iuneq (pinf, ninf, 0); iuneq (1, 4, 0); iuneq (3, 3, 1); iuneq (5, 2, 0); ieq (1, 4, 0); ieq (3, 3, 1); ieq (5, 2, 0); iltgt (ninf, pinf, 1); iltgt (NaN, NaN, 0); iltgt (pinf, ninf, 1); iltgt (1, 4, 1); iltgt (3, 3, 0); iltgt (5, 2, 1); ine (1, 4, 1); ine (3, 3, 0); ine (5, 2, 1); iunlt (NaN, ninf, 1); iunlt (pinf, NaN, 1); iunlt (pinf, ninf, 0); iunlt (pinf, pinf, 0); iunlt (ninf, ninf, 0); iunlt (1, 4, 1); iunlt (3, 3, 0); iunlt (5, 2, 0); ilt (1, 4, 1); ilt (3, 3, 0); ilt (5, 2, 0); iunle (NaN, ninf, 1); iunle (pinf, NaN, 1); iunle (pinf, ninf, 0); iunle (pinf, pinf, 1); iunle (ninf, ninf, 1); iunle (1, 4, 1); iunle (3, 3, 1); iunle (5, 2, 0); ile (1, 4, 1); ile (3, 3, 1); ile (5, 2, 0); iungt (NaN, ninf, 1); iungt (pinf, NaN, 1); iungt (pinf, ninf, 1); iungt (pinf, pinf, 0); iungt (ninf, ninf, 0); iungt (1, 4, 0); iungt (3, 3, 0); iungt (5, 2, 1); igt (1, 4, 0); igt (3, 3, 0); igt (5, 2, 1); iunge (NaN, ninf, 1); iunge (pinf, NaN, 1); iunge (ninf, pinf, 0); iunge (pinf, pinf, 1); iunge (ninf, ninf, 1); iunge (1, 4, 0); iunge (3, 3, 1); iunge (5, 2, 1); ige (1, 4, 0); ige (3, 3, 1); ige (5, 2, 1); return 0; }
int fpu_post_test_math6 (void) { pinf = __builtin_inf (); ninf = -__builtin_inf (); NaN = __builtin_nan (""); iuneq (ninf, pinf, 0); iuneq (NaN, NaN, 1); iuneq (pinf, ninf, 0); iuneq (1, 4, 0); iuneq (3, 3, 1); iuneq (5, 2, 0); ieq (1, 4, 0); ieq (3, 3, 1); ieq (5, 2, 0); iltgt (ninf, pinf, 1); iltgt (NaN, NaN, 0); iltgt (pinf, ninf, 1); iltgt (1, 4, 1); iltgt (3, 3, 0); iltgt (5, 2, 1); ine (1, 4, 1); ine (3, 3, 0); ine (5, 2, 1); iunlt (NaN, ninf, 1); iunlt (pinf, NaN, 1); iunlt (pinf, ninf, 0); iunlt (pinf, pinf, 0); iunlt (ninf, ninf, 0); iunlt (1, 4, 1); iunlt (3, 3, 0); iunlt (5, 2, 0); ilt (1, 4, 1); ilt (3, 3, 0); ilt (5, 2, 0); iunle (NaN, ninf, 1); iunle (pinf, NaN, 1); iunle (pinf, ninf, 0); iunle (pinf, pinf, 1); iunle (ninf, ninf, 1); iunle (1, 4, 1); iunle (3, 3, 1); iunle (5, 2, 0); ile (1, 4, 1); ile (3, 3, 1); ile (5, 2, 0); iungt (NaN, ninf, 1); iungt (pinf, NaN, 1); iungt (pinf, ninf, 1); iungt (pinf, pinf, 0); iungt (ninf, ninf, 0); iungt (1, 4, 0); iungt (3, 3, 0); iungt (5, 2, 1); igt (1, 4, 0); igt (3, 3, 0); igt (5, 2, 1); iunge (NaN, ninf, 1); iunge (pinf, NaN, 1); iunge (ninf, pinf, 0); iunge (pinf, pinf, 1); iunge (ninf, ninf, 1); iunge (1, 4, 0); iunge (3, 3, 1); iunge (5, 2, 1); ige (1, 4, 0); ige (3, 3, 1); ige (5, 2, 1); if (failed) { post_log ("Error in FPU math6 test\n"); return -1; } return 0; }
void ObjectRenderer::Render(){ if(!bDrawObject) return; if(mObject!=NULL){ glPushMatrix(); glMultMatrixf(mObject->GetReferenceFrame().GetHMatrix().RowOrderForceFloat()); } if(bDrawRef) GLT::DrawRef(mRefSize); for(int i=0;i<int(mShapes.size());i++){ glPushMatrix(); if(bDrawCom){ GLT::SetColor(mComColor[0],mComColor[1],mComColor[2],mComColor[3]); Matrix ine(3,3); Vector d(3); Matrix eg(3,3); Matrix3 egt; Matrix3 degt; Matrix dd(3,3); Matrix3 ddd; ine = (mObject->GetSpatialInertia().mInertiaMoment); ine.EigenValuesDecomposition(d, eg); egt.Set(eg); egt.STranspose(); dd.Diag(d); ddd.Set(dd); egt.Mult(ddd,degt); glPushMatrix(); Vector3 &com = mObject->GetSpatialInertia().mCenterOfMass; glTranslatef(com[0],com[1],com[2]); GLT::DrawVector(degt.GetColumn(0),0.1); GLT::DrawVector(degt.GetColumn(1),0.1); GLT::DrawVector(degt.GetColumn(2),0.1); glPopMatrix(); } float col[4]; //bUseDefaultColor is not needed since providing no color tag automatically sets the color to default // if(bUseDefaultColor){ // col[0] = mDefaultColor[0]; // col[1] = mDefaultColor[1]; // col[2] = mDefaultColor[2]; // col[3] = mDefaultColor[3]; // }else{ col[0] = mShapes[i]->color[0]; col[1] = mShapes[i]->color[1]; col[2] = mShapes[i]->color[2]; col[3] = mShapes[i]->color[3]; // } if(!bUseTransparency) col[3] = 1.0; glColor4fv(col); glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR,col); if(mShapes[i]->culling) glDisable(GL_CULL_FACE); if(mShapes[i]->shape){ mShapes[i]->shape->Render(); } if(mShapes[i]->culling) glEnable(GL_CULL_FACE); glPopMatrix(); } if(mObject!=NULL){ glPopMatrix(); } AbstractRenderer::Render(); }