From 9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 21 Jan 2021 19:39:33 +0100 Subject: rename udeflate to deflate --- src/app/deflatetest/Makefile.inc | 2 +- src/app/deflatetest/main.cc | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src/app/deflatetest') diff --git a/src/app/deflatetest/Makefile.inc b/src/app/deflatetest/Makefile.inc index 84a6aff..c70a04d 100644 --- a/src/app/deflatetest/Makefile.inc +++ b/src/app/deflatetest/Makefile.inc @@ -10,4 +10,4 @@ ifdef app override arch_drivers += ,counter endif -CXX_TARGETS += src/lib/udeflate.cc +CXX_TARGETS += src/lib/deflate.cc diff --git a/src/app/deflatetest/main.cc b/src/app/deflatetest/main.cc index 516a6a0..1fb394d 100644 --- a/src/app/deflatetest/main.cc +++ b/src/app/deflatetest/main.cc @@ -9,13 +9,8 @@ #include "driver/uptime.h" #include "driver/counter.h" -#include "lib/udeflate.h" +#include "lib/deflate.h" -#define UDEFLATE_ERR_LENGTH (-1) -#define UDEFLATE_ERR_METHOD (-2) -#define UDEFLATE_ERR_FDICT (-3) -#define UDEFLATE_ERR_BLOCK (-4) -#define UDEFLATE_ERR_CHECKSUM (-5) /* // bad apple 0042.png @@ -56,9 +51,9 @@ int main(void) for (uint8_t i = 0; i < 5; i++) { counter.start(); - int8_t ret = udeflate_zlib((unsigned char*)deflate_input, sizeof(deflate_input), deflate_output, sizeof(deflate_output)); + int8_t ret = deflate_zlib((unsigned char*)deflate_input, sizeof(deflate_input), deflate_output, sizeof(deflate_output)); counter.stop(); - kout << "udeflate returned " << ret << endl; + kout << "deflate returned " << ret << endl; kout << "Output: " << (char*)deflate_output << endl; kout << "took " << counter.value << "/" << counter.overflow << " cycles" << endl; } -- cgit v1.2.3