From 2630cd19ba4f427c1fa9dc2094dd3f4e68ab53ad Mon Sep 17 00:00:00 2001 From: cnlohr Date: Fri, 20 Jan 2023 02:35:01 -0500 Subject: [PATCH] Head to head comparison. --- .../test_using_square_wave_octave_approach_stipple.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/attic/test_using_square_wave_octave_approach_stipple.c b/attic/test_using_square_wave_octave_approach_stipple.c index 469c4c0..2e28952 100644 --- a/attic/test_using_square_wave_octave_approach_stipple.c +++ b/attic/test_using_square_wave_octave_approach_stipple.c @@ -174,13 +174,10 @@ int main() int ocative_time = octave_timing[octave] += QUADRATURE_STEP_DENOMINATOR; for( b = 0; b < BPERO; b++, binno++ ) { - if( binno == WATCHBIN ) - { - printf( "%d %d %d %6d %6d %6d\n", ocative_time, quadrature_timing_last[binno], quadrature_state[0], real_imaginary_running[0], real_imaginary_running[1], magsum[0] ); - } + ops+=5; if( ocative_time - quadrature_timing_last[binno] > 0 ) { - ops++; + ops+=20; quadrature_timing_last[binno] += flipdistance[b]; // This code will get appropriately executed every quadrature update. @@ -190,9 +187,6 @@ int main() int delta = sample_accumulator - last_accumulated_value[last_q_bin]; last_accumulated_value[last_q_bin] = sample_accumulator; - if( binno == WATCHBIN ) - printf( "Delta: %d\n", delta ); - // Qstate = // (0) = +Cos, (1) = +Sin, (2) = -Cos, (3) = -Sin if( qstate & 2 ) delta *= -1; @@ -205,6 +199,7 @@ int main() int q = ++qcount[binno]; if( q == SAMPLE_Q ) // Effective Q factor. { + ops+=20; qcount[binno] = 0; int newmagR = real_imaginary_running[(binno * 2)]; int newmagI = real_imaginary_running[(binno * 2)+1];