diff options
Diffstat (limited to 'contrib/labs/kerneltesting/conv2d/compatibility.h')
-rw-r--r-- | contrib/labs/kerneltesting/conv2d/compatibility.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/contrib/labs/kerneltesting/conv2d/compatibility.h b/contrib/labs/kerneltesting/conv2d/compatibility.h deleted file mode 100644 index db8ba04bc..000000000 --- a/contrib/labs/kerneltesting/conv2d/compatibility.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved - * - * 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. - */ - -/* - * Copyright (C) 2017 The Android Open Source Project - * - * 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 ANDROID_ML_NN_COMMON_OPERATIONS_INTERNAL_COMPATIBILITY_H_ -#define ANDROID_ML_NN_COMMON_OPERATIONS_INTERNAL_COMPATIBILITY_H_ - -#ifndef ANDROID_ML_NN_COMPATIBILITY -#define ANDROID_ML_NN_COMPATIBILITY - -#include <cassert> -#include <cstdint> - -#ifndef DCHECK -#define DCHECK(condition) (condition) ? (void)0 : assert(false) -#endif - -#ifndef DCHECK_EQ -#define DCHECK_EQ(x, y) ((x) == (y)) ? (void)0 : assert(false) -#endif - -#ifndef DCHECK_GE -#define DCHECK_GE(x, y) ((x) >= (y)) ? (void)0 : assert(false) -#endif - -#ifndef DCHECK_GT -#define DCHECK_GT(x, y) ((x) > (y)) ? (void)0 : assert(false) -#endif - -#ifndef DCHECK_LE -#define DCHECK_LE(x, y) ((x) <= (y)) ? (void)0 : assert(false) -#endif - -#ifndef DCHECK_LT -#define DCHECK_LT(x, y) ((x) < (y)) ? (void)0 : assert(false) -#endif - -#ifndef CHECK_EQ -#define CHECK_EQ(x, y) ((x) == (y)) ? (void)0 : assert(false) -#endif - -using uint8 = std::uint8_t; -using int16 = std::int16_t; -using uint16 = std::uint16_t; -using int32 = std::int32_t; -using uint32 = std::uint32_t; - -#endif - -#endif // ANDROID_ML_NN_COMMON_OPERATIONS_INTERNAL_COMPATIBILITY_H_ |