From 886c7b680928276d7f925d30fc206ca27d9a97d1 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 9 Dec 2022 15:24:55 +0100 Subject: Add tests and readme --- tests/test_cases/cflags/public/half.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_cases/cflags/public/half.hpp (limited to 'tests/test_cases/cflags/public/half.hpp') diff --git a/tests/test_cases/cflags/public/half.hpp b/tests/test_cases/cflags/public/half.hpp new file mode 100644 index 0000000..0baebcb --- /dev/null +++ b/tests/test_cases/cflags/public/half.hpp @@ -0,0 +1,12 @@ +#ifndef HALF_HPP +#define HALF_HPP + +#ifdef HALF_PRECISION_DOUBLE +#define HALF_RESULT_TYPE double +#else +#define HALF_RESULT_TYPE int +#endif + +HALF_RESULT_TYPE half(int val); + +#endif -- cgit v1.2.3