Home
last modified time | relevance | path

Searched refs:radix_mult (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/gamesdk/test/tuningfork/
Dannotation_test.cpp25 std::vector<int> radix_mult; in TestSetup() local
26 SetUpAnnotationRadixes(radix_mult, enum_sizes); in TestSetup()
27 EXPECT_EQ(radix_mult, expected); in TestSetup()
28 return radix_mult; in TestSetup()
40 const std::vector<int>& radix_mult, const std::string& err) { in CheckEncodeDecode() argument
42 EXPECT_EQ(SerializeAnnotationId(id, ser, radix_mult), 0) << err << ": error serializing"; in CheckEncodeDecode()
43 auto back = DecodeAnnotationSerialization( ser, radix_mult); in CheckEncodeDecode()
47 auto radix_mult = TestSetup( {2, 3, 4} , {3, 12, 60} ); in TEST() local
48 CheckEncodeDecode( 1, radix_mult, "First"); in TEST()
49 CheckEncodeDecode( 2, radix_mult, "Second"); in TEST()
[all …]
/frameworks/opt/gamesdk/src/tuningfork/
Dannotation_util.cpp63 const std::vector<int>& radix_mult) { in DecodeAnnotationSerialization() argument
71 if (key >= radix_mult.size()) in DecodeAnnotationSerialization()
80 if (value == 0 || value >= radix_mult[key]) in DecodeAnnotationSerialization()
86 result += radix_mult[key - 1] * value; in DecodeAnnotationSerialization()
94 const std::vector<int>& radix_mult) { in SerializeAnnotationId() argument
97 for (int i = 0; i < radix_mult.size(); ++i) { in SerializeAnnotationId()
98 auto r = ::div(x, radix_mult[i]); in SerializeAnnotationId()
110 void SetUpAnnotationRadixes( std::vector<int>& radix_mult, in SetUpAnnotationRadixes() argument
119 radix_mult.resize(1); in SetUpAnnotationRadixes()
120 radix_mult[0] = 1; in SetUpAnnotationRadixes()
[all …]
Dannotation_util.h32 const std::vector<int>& radix_mult);
36 const std::vector<int>& radix_mult);
38 void SetUpAnnotationRadixes( std::vector<int>& radix_mult,