summaryrefslogtreecommitdiff
path: root/src/app/deflatetest
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-21 19:39:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-21 19:39:33 +0100
commit9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b (patch)
tree6141d6c14bd0815cb311aa01dd78acb316c50421 /src/app/deflatetest
parent0f0a58f94f65d3c84e1ab46d91e21f776507e080 (diff)
rename udeflate to deflate
Diffstat (limited to 'src/app/deflatetest')
-rw-r--r--src/app/deflatetest/Makefile.inc2
-rw-r--r--src/app/deflatetest/main.cc11
2 files changed, 4 insertions, 9 deletions
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;
}