22 #ifndef INCLUDED_GR_CHECK_COUNTING_S_H
23 #define INCLUDED_GR_CHECK_COUNTING_S_H
49 unsigned int d_history;
50 unsigned short d_current_count;
51 unsigned int d_current_count_32bit;
59 void enter_SEARCHING ();
63 d_history = (d_history << 1) | 0x1;
67 d_history = (d_history << 1) | 0x0;
71 bool right_three_times () {
return (d_history & 0x7) == 0x7; }
72 bool wrong_three_times () {
return (d_history & 0x7) == 0x0; }
74 void log_error (
unsigned short expected,
unsigned short actual);
75 void log_error_32bit (
unsigned int expected,
unsigned int actual);
77 int check_32bit (
int noutput_items,
unsigned short * in);
78 int check_16bit (
int noutput_items,
unsigned short * in);
82 int work (
int noutput_items,