We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ae4854 commit ff2c7eaCopy full SHA for ff2c7ea
1 file changed
src/datadog/trace_source.cpp
@@ -11,11 +11,7 @@ bool validate_trace_source(StringView source_str) {
11
auto maybe_ts_uint = parse_uint64(source_str, 10);
12
if (maybe_ts_uint.if_error()) return false;
13
14
- // Bit twiddling magic is coming from
15
- // <http://www.graphics.stanford.edu/~seander/bithacks.html> <3.
16
- auto is_power_of_2 = [](uint64_t v) -> bool { return v && !(v & (v - 1)); };
17
-
18
- return is_power_of_2(*maybe_ts_uint);
+ return true;
19
}
20
21
} // namespace tracing
0 commit comments