CRC reimplementation to be byte-at-a-time table-driven.

Also be smarter about error correction, avoiding ambiguous cases
when --aggressive is specified.
This commit is contained in:
Oliver Jowett 2015-01-20 23:04:05 +00:00
parent 0d3fcfff2e
commit 270a22e06a
8 changed files with 438 additions and 237 deletions

View file

@ -28,10 +28,13 @@ view1090: view1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o crc.o stat
$(CC) -g -o $@ $^ $(LIBS) $(LDFLAGS)
clean:
rm -f *.o dump1090 view1090 cprtests
rm -f *.o dump1090 view1090 cprtests crctests
test: cprtests
$(PWD)/cprtests
cprtests: cpr.o cprtests.o
$(CC) -g -o $@ $^ $(LIBS) $(LDFLAGS)
$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRACFLAGS) -g -o $@ $^ -lm
crctests: crc.c crc.h
$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRACFLAGS) -g -DCRCDEBUG -o $@ $<