usefulcat
usefulcat
The original source for these functions can be found here: https://github.com/appnexus/acf/blob/master/src/an_itoa.c On the hardware I used for testing, these functions are pretty competitive. Original source is Apache-licensed C.
If flags(empty_t) were not declared explicit, I could do the following: void f(int x, flags::flags f = flags::empty); Instead of: void f(int x, flags::flags f = flags::flags(flags::empty)); ..which of course...
I added the following test case to tests.cpp, which is just a trivial combination of the contents of the PreIncrementable and PostIncrementable tests: ``` TEST_CASE("PreAndPostIncrementable") { using StrongInt = fluent::NamedType;...
**Channel** C++Weekly **Topics** lower_bound, branchless programming, performance, cmov **Length** 10-20 I've profiled this myself and found that it is consistently faster than std::lower_bound (from libstdc++) using either clang or gcc,...
Using CHECK to test the value of a bitfield doesn't compile (Linux, gcc 12, c++20, doctest 2.4.11): ``` struct S { uint32_t a : 31; uint32_t b : 1; };...
When I run the eytzinger() function in that section, it produces the following layout in array t (given 0-9 in array a): 6 3 8 1 5 7 9 0...
Minor cleanup to remove some duplicated code
When using a dynamic log level, ConsoleHandler::write() needs to get the log level by calling TransitEvent::log_level() instead of directly accessing the log level stored in MacroMetaData. MacroMetadata::_log_level could be LogLevel::Dynamic,...
Sometimes pixz will segfault when using the -x option to extract individual files. The conditions which trigger the crash are such that there is a small chance of a crash...
Using gcc 9.1 with -fsanitize=undefined and -DBOOST_CB_ENABLE_DEBUG=1, the following code results in a ubsan error: "boost/circular_buffer/debug.hpp:37:16: runtime error: null pointer passed as argument 1, which is declared to never be...