Searched refs:power_of_two (Results 1 – 4 of 4) sorted by relevance
267 power_of_two(int input) in power_of_two() function287 w = power_of_two(surface->w); in SDL_GL_LoadTexture()288 h = power_of_two(surface->h); in SDL_GL_LoadTexture()
1057 absl::int128 power_of_two = absl::int128(1) << i; in TEST() local1059 EXPECT_EQ(value >> i, value / power_of_two); in TEST()1060 EXPECT_EQ(value >> i, absl::int128(value) /= power_of_two); in TEST()1061 EXPECT_EQ(value & (power_of_two - 1), value % power_of_two); in TEST()1062 EXPECT_EQ(value & (power_of_two - 1), in TEST()1063 absl::int128(value) %= power_of_two); in TEST()
1039 absl::int128 power_of_two = absl::int128(1) << i; in TEST() local1041 EXPECT_EQ(value >> i, value / power_of_two); in TEST()1042 EXPECT_EQ(value >> i, absl::int128(value) /= power_of_two); in TEST()1043 EXPECT_EQ(value & (power_of_two - 1), value % power_of_two); in TEST()1044 EXPECT_EQ(value & (power_of_two - 1), in TEST()1045 absl::int128(value) %= power_of_two); in TEST()
128 #define ALIGN(x, power_of_two) (((x) + (power_of_two) - 1) & ~((power_of_two) - 1)) argument