ClickHouse/src/Common/examples
Robert Schulze a7734672b9
Use std::popcount, ::countl_zero, ::countr_zero functions
- Introduced with the C++20 <bit> header

- The problem with __builtin_c(l|t)z() is that 0 as input has an
  undefined result (*) and the code did not always check. The std::
  versions do not have this issue.

- In some cases, we continue to use buildin_c(l|t)z(), (e.g. in
  src/Common/BitHelpers.h) because the std:: versions only accept
  unsigned inputs (and they also check that) and the casting would be
  ugly.

(*) https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
2022-07-31 15:16:51 +00:00
..
arena_with_free_lists.cpp Rename "common" to "base" 2021-10-02 10:13:14 +03:00
array_cache.cpp move to examples everywhere 2021-04-27 01:51:42 +03:00
average.cpp Use std::popcount, ::countl_zero, ::countr_zero functions 2022-07-31 15:16:51 +00:00
chaos_sanitizer.cpp Rename "common" to "base" 2021-10-02 10:13:14 +03:00
CMakeLists.txt Prefix overridden add_executable() command with "clickhouse_" 2022-07-11 19:36:18 +02:00
compact_array.cpp move to examples everywhere 2021-04-27 01:51:42 +03:00
cow_columns.cpp
cow_compositions.cpp fixed the cow_compositions.cpp clone inner column when there is no need 2022-04-23 18:42:04 +08:00
executable_udf.cpp Fix style check 2021-10-20 15:33:20 +03:00
hashes_test.cpp
hive_metastore_client.cpp implement hive table engine 2021-11-05 19:55:30 +08:00
int_hashes_perf.cpp More consistent use of platform macros 2022-06-10 10:22:31 +02:00
integer_hash_tables_and_hashes.cpp Rename "common" to "base" 2021-10-02 10:13:14 +03:00
integer_hash_tables_benchmark.cpp Rename "common" to "base" 2021-10-02 10:13:14 +03:00
interval_tree.cpp Added IntervalTree documentation 2022-01-18 13:20:43 +00:00
lru_hash_map_perf.cpp better 2021-05-27 23:43:00 +03:00
memory_statistics_os_perf.cpp
parallel_aggregation2.cpp better 2021-05-27 23:43:00 +03:00
parallel_aggregation.cpp
procfs_metrics_provider_perf.cpp More consistent use of platform macros 2022-06-10 10:22:31 +02:00
radix_sort.cpp Rename "common" to "base" 2021-10-02 10:13:14 +03:00
shell_command_inout.cpp
sip_hash_perf.cpp
small_table.cpp fix -DENABLE_EXAMPLES=1 in master 2022-07-23 19:00:52 +02:00
space_saving.cpp Rename "common" to "base" 2021-10-02 10:13:14 +03:00
stopwatch.cpp
symbol_index.cpp More consistent use of platform macros 2022-06-10 10:22:31 +02:00
thread_creation_latency.cpp