Home
last modified time | relevance | path

Searched refs:CpuFeatures_StringView_ParsePositiveNumber (Results 1 – 6 of 6) sorted by relevance

/external/cpu_features/test/
Dstring_view_test.cc129 TEST(StringViewTest, CpuFeatures_StringView_ParsePositiveNumber) { in TEST() argument
130 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("42")), 42); in TEST()
131 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("0x2a")), 42); in TEST()
132 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("0x2A")), 42); in TEST()
133 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("0x2A2a")), 10794); in TEST()
134 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("0x2a2A")), 10794); in TEST()
136 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("-10")), -1); in TEST()
137 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("-0x2A")), -1); in TEST()
138 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("abc")), -1); in TEST()
139 EXPECT_EQ(CpuFeatures_StringView_ParsePositiveNumber(str("")), -1); in TEST()
/external/cpu_features/src/
Dcpuinfo_arm.c84 info->implementer = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleArmLine()
86 info->variant = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleArmLine()
88 info->part = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleArmLine()
90 info->revision = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleArmLine()
96 info->architecture = CpuFeatures_StringView_ParsePositiveNumber(digits); in HandleArmLine()
Dcpuinfo_aarch64.c93 info->implementer = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleAarch64Line()
95 info->variant = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleAarch64Line()
97 info->part = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleAarch64Line()
99 info->revision = CpuFeatures_StringView_ParsePositiveNumber(value); in HandleAarch64Line()
Dstring_view.c122 int CpuFeatures_StringView_ParsePositiveNumber(const StringView view) { in CpuFeatures_StringView_ParsePositiveNumber() function
/external/cpu_features/ndk_compat/
Dcpu-features.c37 int cpu_index = CpuFeatures_StringView_ParsePositiveNumber(text); in parse_cpu_mask()
41 int cpu_index_a = CpuFeatures_StringView_ParsePositiveNumber( in parse_cpu_mask()
43 int cpu_index_b = CpuFeatures_StringView_ParsePositiveNumber( in parse_cpu_mask()
/external/cpu_features/include/internal/
Dstring_view.h91 int CpuFeatures_StringView_ParsePositiveNumber(const StringView view);