Searched refs:CpuFeatures_StringView_ParsePositiveNumber (Results 1 – 6 of 6) sorted by relevance
/external/cpu_features/test/ |
D | string_view_test.cc | 129 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/ |
D | cpuinfo_arm.c | 84 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()
|
D | cpuinfo_aarch64.c | 93 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()
|
D | string_view.c | 122 int CpuFeatures_StringView_ParsePositiveNumber(const StringView view) { in CpuFeatures_StringView_ParsePositiveNumber() function
|
/external/cpu_features/ndk_compat/ |
D | cpu-features.c | 37 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/ |
D | string_view.h | 91 int CpuFeatures_StringView_ParsePositiveNumber(const StringView view);
|