From cbc47ebeb25f5824b2883ae00af23174e48e785c 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/BUILD.gn | 1 - common/common/inc/bitwise_operation.h | 24 --------------------- common/common/src/bitwise_operation.c | 30 --------------------------- 3 files changed, 55 deletions(-) delete mode 100644 common/common/inc/bitwise_operation.h delete mode 100644 common/common/src/bitwise_operation.c diff --git a/common/BUILD.gn b/common/BUILD.gn index 769f123..1e4c2f6 100644 --- a/common/BUILD.gn +++ b/common/BUILD.gn @@ -30,7 +30,6 @@ ohos_shared_library("useriam_common_lib") { "coauth/src/coauth_funcs.c", "coauth/src/coauth_sign_centre.c", "coauth/src/executor_message.c", - "common/src/bitwise_operation.c", "common/src/buffer.c", "common/src/linked_list.c", "common/src/tlv_base.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