Changeset 10791 in ntrip for trunk/BNC/newmat/newmat7.cpp


Ignore:
Timestamp:
Dec 3, 2025, 5:37:16 PM (2 months ago)
Author:
mervart
Message:

BNC Multifrequency and PPPAR Client (initial version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/newmat/newmat7.cpp

    r9434 r10791  
    545545         { REPORT AddDS(gm1,gm2); gm2->tDelete(); gmx = gm1; }
    546546      else if (c2 && gm2->reuse() )
    547          { REPORT AddDS(gm2,gm1); if (!c1) gm1->tDelete(); gmx = gm2; }
     547        { REPORT AddDS(gm2,gm1);
     548           if (!c1) gm1->tDelete();
     549           gmx = gm2;
     550        }
    548551      else
    549552      {
     
    552555         CatchAll
    553556         {
    554             if (!c1) gm1->tDelete(); if (!c2) gm2->tDelete();
     557            if (!c1) gm1->tDelete();
     558            if (!c2) gm2->tDelete();
    555559            ReThrow;
    556560         }
    557561         AddDS(gmx,gm1,gm2);
    558          if (!c1) gm1->tDelete(); if (!c2) gm2->tDelete();
     562         if (!c1) gm1->tDelete();
     563         if (!c2) gm2->tDelete();
    559564         gmx->ReleaseAndDelete();
    560565      }
     
    616621      {
    617622         REPORT ReverseSubtractDS(gm2,gm1);
    618          if (!c1) gm1->tDelete(); gmx = gm2;
     623         if (!c1) gm1->tDelete();
     624         gmx = gm2;
    619625      }
    620626      else
     
    625631         CatchAll
    626632         {
    627             if (!c1) gm1->tDelete(); if (!c2) gm2->tDelete();
     633            if (!c1) gm1->tDelete();
     634            if (!c2) gm2->tDelete();
    628635            ReThrow;
    629636         }
    630637         SubtractDS(gmx,gm1,gm2);
    631          if (!c1) gm1->tDelete(); if (!c2) gm2->tDelete();
     638         if (!c1) gm1->tDelete();
     639         if (!c2) gm2->tDelete();
    632640         gmx->ReleaseAndDelete();
    633641      }
     
    695703         CatchAll
    696704         {
    697             if (!c1) gm1->tDelete(); if (!c2) gm2->tDelete();
     705            if (!c1) gm1->tDelete();
     706            if (!c2) gm2->tDelete();
    698707            ReThrow;
    699708         }
    700709         SPDS(gmx,gm1,gm2);
    701          if (!c1) gm1->tDelete(); if (!c2) gm2->tDelete();
     710         if (!c1) gm1->tDelete();
     711         if (!c2) gm2->tDelete();
    702712         gmx->ReleaseAndDelete();
    703713      }
     
    779789   while (i--)
    780790   {
    781       if (*s1++ != *s2++) return false; if (*s1++ != *s2++) return false;
    782       if (*s1++ != *s2++) return false; if (*s1++ != *s2++) return false;
     791      if (*s1++ != *s2++) return false;
     792      if (*s1++ != *s2++) return false;
     793      if (*s1++ != *s2++) return false;
     794      if (*s1++ != *s2++) return false;
    783795   }
    784796   i = n & 3; while (i--) if (*s1++ != *s2++) return false;
     
    791803   while (i--)
    792804   {
    793       if (*s1++ != *s2++) return false; if (*s1++ != *s2++) return false;
    794       if (*s1++ != *s2++) return false; if (*s1++ != *s2++) return false;
     805      if (*s1++ != *s2++) return false;
     806      if (*s1++ != *s2++) return false;
     807      if (*s1++ != *s2++) return false;
     808      if (*s1++ != *s2++) return false;
    795809   }
    796810   i = n & 3; while (i--) if (*s1++ != *s2++) return false;
     
    869883   while (i--)
    870884   {
    871       if (*s++) return false; if (*s++) return false;
    872       if (*s++) return false; if (*s++) return false;
     885      if (*s++) return false;
     886      if (*s++) return false;
     887      if (*s++) return false;
     888      if (*s++) return false;
    873889   }
    874890   i = storage & 3; while (i--) if (*s++) return false;
Note: See TracChangeset for help on using the changeset viewer.