From 7ef0fb5810f99b0df73ed2730bccbb486a3bee46 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 11 Mar 2010 13:43:06 +0000 Subject: [PATCH] compile with -DTEST to gcrcs16 binary for calculate CRC16 of string for CRC_ constants --- goldlib/gall/gcrcs16.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/goldlib/gall/gcrcs16.cpp b/goldlib/gall/gcrcs16.cpp index d0d332b..229c92a 100644 --- a/goldlib/gall/gcrcs16.cpp +++ b/goldlib/gall/gcrcs16.cpp @@ -71,3 +71,11 @@ word strCrc16c(const char* s, bool __case, word mask) { // ------------------------------------------------------------------ +#ifdef TEST +#include +int main(int argc, char**argv) +{ + for ( int c=1; c