Commit c050195d authored by malenov's avatar malenov
Browse files

removal of reset_stack()

fix of intra-frame and inter-frame memory printout
parent 440e8dd5
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -449,7 +449,6 @@ int main(

#ifdef WMOPS
    reset_wmops();
    reset_stack();
#endif

    /*-----------------------------------------------------------------*
@@ -1129,7 +1128,6 @@ static ivas_error decodeG192(
    }

#ifdef WMOPS
    reset_stack();
    reset_wmops();
#endif

@@ -1641,7 +1639,6 @@ static ivas_error decodeVoIP(
    }

#ifdef WMOPS
    reset_stack();
    reset_wmops();
#endif

+0 −1
Original line number Diff line number Diff line
@@ -552,7 +552,6 @@ int main(

#ifdef WMOPS
    reset_wmops();
    reset_stack();
#endif

    /*------------------------------------------------------------------------------------------*
+481 −248

File changed.

Preview size limit exceeded, changes collapsed.

+2 −22
Original line number Diff line number Diff line
@@ -28,28 +28,6 @@
#define NUM_INST                    20          /* Total number of instruction types (in enum below) */


/* inline function for memset in combination with float pointer */
#define SET_FLOAT(ptr,value,num)             \
{                                            \
   int i;                                    \
                         LOOP(1); MOVE(num); \
   for (i=0; i < num; i++)                   \
   {                                         \
      ptr[i] = value;                        \
   }                                         \
}

/* inline function for memset in combination with integer */
#define SET_INT(ptr,value,num)               \
{                                            \
   int i;                                    \
                         LOOP(1); MOVE(num); \
   for (i=0; i < num; i++)                   \
   {                                         \
      ptr[i] = value;                        \
   }                                         \
}

#ifdef WMOPS
enum instructions {_ADD,_ABS, _MULT, _MAC, _MOVE, _STORE, _LOGIC, _SHIFT, _BRANCH, _DIV, _SQRT, _TRANS, _FUNC, _LOOP, _INDIRECT, _PTR_INIT, _TEST, _POWER, _LOG, _MISC};

@@ -137,6 +115,7 @@ void reset_wmops (void);
void push_wmops (const char *label);
void pop_wmops (void);
void update_wmops (void);
void update_mem( void );
void print_wmops (void);

#else /* WMOPS counting disabled */
@@ -146,6 +125,7 @@ extern int cntr_push_pop;
#define push_wmops(x) (cntr_push_pop++)
#define pop_wmops() (cntr_push_pop--)
#define update_wmops() (assert(cntr_push_pop == 0))
#define update_mem()
#define print_wmops()

#define ADD(x)