From 52f882514384c6be00752be0dca9bd511db9d450 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 12 Feb 2025 09:31:36 +0100 Subject: ADD: Qr Code algortihm from a vendor library which I forgot about from the R&D. Signed-off-by: Amlal El Mahrouss --- dev/Boot/BootKit/Shared/base.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dev/Boot/BootKit/Shared/base.h (limited to 'dev/Boot/BootKit/Shared/base.h') diff --git a/dev/Boot/BootKit/Shared/base.h b/dev/Boot/BootKit/Shared/base.h new file mode 100644 index 00000000..1270b36a --- /dev/null +++ b/dev/Boot/BootKit/Shared/base.h @@ -0,0 +1,26 @@ +#ifndef UTL_BASE_H +#define UTL_BASE_H + +#include +#include +#include + +namespace utl +{ + + /** + * @brief Helper to get number of elements in array. + * + * @tparam T Auto-deduced element type + * @tparam N Auto-deduced number of elements + * @return Array size + */ + template + constexpr size_t countof(T (&)[N]) + { + return N; + } + +} // namespace utl + +#endif \ No newline at end of file -- cgit v1.2.3