From 67b4ffcea8707c561c1e52d3614c53ad8f758697 Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Mon, 13 Sep 2021 16:24:41 +0300 Subject: [PATCH] remove common-res --- common/res/common-res.h | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 common/res/common-res.h diff --git a/common/res/common-res.h b/common/res/common-res.h deleted file mode 100644 index 831fff37e7..0000000000 --- a/common/res/common-res.h +++ /dev/null @@ -1,17 +0,0 @@ -// License: Apache 2.0. See LICENSE file in root directory. -// Copyright(c) 2021 Intel Corporation. All Rights Reserved. - -#pragma once - -// This function calculates and returns the zero padded amount of bytes added to the last index of the uint32_t vector (32 bit alignment) -// Note: If the value itself is zero it will threat it as padding (use with cautions) -inline int calc_alignment_padding(uint32_t last_value) -{ - int cnt = 0; - for (int i = 3; i > 0; --i) - { - if ((last_value & (0xFF << (i * 8))) == 0) cnt++; - else break; - } - return cnt; -}