From b1f3c449fc9cf1e9c1c09ff50a2722d4c786844d Mon Sep 17 00:00:00 2001 From: Liangliang He Date: Mon, 4 Sep 2017 17:26:52 +0800 Subject: [PATCH] Minor fixes --- mace/core/integral_types.h | 12 ++++++------ mace/kernels/BUILD | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/mace/core/integral_types.h b/mace/core/integral_types.h index ac4c8803..72298201 100644 --- a/mace/core/integral_types.h +++ b/mace/core/integral_types.h @@ -6,14 +6,14 @@ #ifndef MACE_CORE_INTEGRAL_TYPES_H_ #define MACE_CORE_INTEGRAL_TYPES_H_ -typedef signed char int8; -typedef short int16; -typedef int int32; +typedef int8_t int8; +typedef int16_t int16; +typedef int32_t int32; typedef int64_t int64; -typedef unsigned char uint8; -typedef unsigned short uint16; -typedef unsigned int uint32; +typedef uint8_t uint8; +typedef uint16_t uint16; +typedef uint32_t uint32; typedef uint64_t uint64; #endif // MACE_CORE_INTEGRAL_TYPES_H_ diff --git a/mace/kernels/BUILD b/mace/kernels/BUILD index a842356a..ca215d5a 100644 --- a/mace/kernels/BUILD +++ b/mace/kernels/BUILD @@ -17,6 +17,9 @@ cc_library( deps = [ "//mace/core:core", ], - copts = ['-std=c++11'], + copts = ['-std=c++11'] + if_android([ + "-mfpu=neon", # TODO recheck the flags + "-mfloat-abi=hard", + ]), ) -- GitLab