From 3aa1666e34f3b835f31434dd9652c05da4b76ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E9=9C=87?= Date: Sat, 22 Jan 2022 11:14:34 +0800 Subject: [PATCH] Delete useless and wrong files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 韩震 --- common/common/inc/bitwise_operation.h | 24 --------------------- common/common/src/bitwise_operation.c | 30 --------------------------- 2 files changed, 54 deletions(-) delete mode 100644 common/common/inc/bitwise_operation.h delete mode 100644 common/common/src/bitwise_operation.c diff --git a/common/common/inc/bitwise_operation.h b/common/common/inc/bitwise_operation.h deleted file mode 100644 index 10fd495..0000000 --- a/common/common/inc/bitwise_operation.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef BITWISE_OPERATION_H -#define BITWISE_OPERATION_H - -#include - -uint64_t GetUint64(uint32_t high, uint32_t low); -void SplitUint64(uint64_t number, uint32_t *high, uint32_t *low); - -#endif // BITWISE_OPERATION_H diff --git a/common/common/src/bitwise_operation.c b/common/common/src/bitwise_operation.c deleted file mode 100644 index d2fd550..0000000 --- a/common/common/src/bitwise_operation.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "bitwise_operation.h" - -uint64_t GetUint64(uint32_t high, uint32_t low) -{ - uint64_t tmpHigh = high; - // Combine two 32-bit data into one 64-bit data - return ((tmpHigh << 32) | low); -} - -void SplitUint64(uint64_t number, uint32_t *high, uint32_t *low) -{ - // Combine 64-bit data into two 64-bit data - *low = number & 0xffffffff; - *high = (number >> sizeof(uint32_t)) & 0xffffffff; -} \ No newline at end of file -- Gitee