/* The expected result takes into account the log error */ staticconststruct test_case_params intlog2_params[] = {
{0, 0, "Log base 2 of 0"},
{1, 0, "Log base 2 of 1"},
{2, 16777216, "Log base 2 of 2"},
{3, 26591232, "Log base 2 of 3"},
{4, 33554432, "Log base 2 of 4"},
{8, 50331648, "Log base 2 of 8"},
{16, 67108864, "Log base 2 of 16"},
{32, 83886080, "Log base 2 of 32"},
{U32_MAX, 536870911, "Log base 2 of MAX"},
};
staticconststruct test_case_params intlog10_params[] = {
{0, 0, "Log base 10 of 0"},
{1, 0, "Log base 10 of 1"},
{6, 13055203, "Log base 10 of 6"},
{10, 16777225, "Log base 10 of 10"},
{100, 33554450, "Log base 10 of 100"},
{1000, 50331675, "Log base 10 of 1000"},
{10000, 67108862, "Log base 10 of 10000"},
{U32_MAX, 161614247, "Log base 10 of MAX"}
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.