Commit Graph

  • 95049aadbe Rollback support runtime dispatch on AArch64 macOS for breaking some builds Abseil Team 2025-01-17 08:17:37 -08:00
  • b87a7955b8 Downgrade to rules_cc 0.0.17 because 0.1.0 was yanked Derek Mauro 2025-01-17 08:15:23 -08:00
  • a4e7719121 Use unused set in testing. Chris Kennelly 2025-01-16 14:11:34 -08:00
  • b7af5e1e41 Random: Support runtime dispatch on AArch64 macOS David Majnemer 2025-01-16 13:10:08 -08:00
  • 3ded0b656e crc: Use absl::nullopt when returning absl::optional David Majnemer 2025-01-16 09:59:37 -08:00
  • b4e899a955 Annotate absl::FixedArray to warn when unused. Chris Kennelly 2025-01-15 08:08:41 -08:00
  • 41984a2258 PR #1806: Fix undefined symbol: __android_log_write simonla 2025-01-15 06:46:57 -08:00
  • a1de53ddde Move ABSL_HAVE_PTHREAD_CPU_NUMBER_NP to the file where it is needed Abseil Team 2025-01-14 11:57:12 -08:00
  • be33b0aaae Use rbit instruction on ARM rather than rev. Evan Brown 2025-01-14 10:48:54 -08:00
  • 3fba335b02 Debugging: Report the CPU we are running on under Darwin David Majnemer 2025-01-14 10:29:25 -08:00
  • 1b0f25267f Add a microbenchmark for very long int/string tuples. Samuel Benzaquen 2025-01-14 08:46:36 -08:00
  • 6effb000ca Crc: Detect support for pmull and crc instructions on Apple AArch64 With a newer clang, we can use __builtin_cpu_supports which caches all the feature bits. David Majnemer 2025-01-13 16:44:26 -08:00
  • d498bf66ef Add special handling for hashing integral types so that we can optimize Read1To3 and Read4To8 for the strings case. Evan Brown 2025-01-13 15:09:26 -08:00
  • 67d3d20683 Use unused FixedArray instances. Chris Kennelly 2025-01-13 13:13:07 -08:00
  • 34875a5685 Minor reformatting Evan Brown 2025-01-13 10:56:24 -08:00
  • c8977ff7b5 Avoid flaky expectation in WaitDurationWoken test case in MSVC. Evan Brown 2025-01-13 10:14:06 -08:00
  • f4af6c0072 Use Bazel rules_cc for many compiler-specific rules instead of our custom ones from before the Bazel rules existed. Derek Mauro 2025-01-13 09:52:17 -08:00
  • 3f770c4d96 Mix pointers twice in absl::Hash. Evan Brown 2025-01-10 15:16:00 -08:00
  • 69b5bd124e New internal-use-only classes AsStructuredLiteralImpl and AsStructuredValueImpl Abseil Team 2025-01-10 12:04:06 -08:00
  • 81d48b3e43 Annotate some Abseil container methods with [[clang::lifetime_capture_by(...)]] Abseil Team 2025-01-10 11:42:36 -08:00
  • 1d508979fc Faster copy from inline Cords to inline Strings Abseil Team 2025-01-10 08:27:23 -08:00
  • f489ceb630 Add new benchmark cases for hashing string lengths 1,2,4,8. Evan Brown 2025-01-09 12:53:59 -08:00
  • 2f016c4575 Move the Arm implementation of UnscaledCycleClock::Now() into the header file, like the x86 implementation, so it can be more easily inlined. Abseil Team 2025-01-08 12:39:48 -08:00
  • 65b7da13bf Minor include cleanup in absl/random/internal Laramie Leavitt 2025-01-07 15:41:04 -08:00
  • 60d1ce9911 Import of CCTZ from GitHub. Derek Mauro 2025-01-07 07:47:25 -08:00
  • 4e09561096 Use Bazel Platforms to support AES-NI compile options for Randen Derek Mauro 2025-01-06 13:23:03 -08:00
  • 506f1072c0 In HashState::Create, require that T is a subclass of HashStateBase in order to discourage users from defining their own HashState types. Evan Brown 2025-01-06 10:31:52 -08:00
  • 3ee08f3298 PR #1801: Remove unncessary <iostream> includes Jeremy Nimmer 2025-01-06 09:05:32 -08:00
  • 51b7426e92 New class StructuredProtoField Abseil Team 2025-01-03 17:12:57 -08:00
  • bdc9a7b283 Mix pointers twice in TSan and MSVC to avoid flakes in the PointerAlignment test. Evan Brown 2025-01-03 12:04:26 -08:00
  • 6187f70c07 Add a test case that type-erased absl::HashState is consistent with absl::HashOf. Evan Brown 2025-01-03 11:10:13 -08:00
  • d910383b49 Mix pointers twice in build modes in which the PointerAlignment test is flaky if we mix once. Evan Brown 2025-01-03 09:49:48 -08:00
  • f339ea31b8 Increase threshold for stuck bits in PointerAlignment test on android. Evan Brown 2024-12-30 19:19:09 -08:00
  • 86c7331fb6 Use hashing ideas from Carbon's hashtable in absl hashing: - Use byte swap instead of mixing pointers twice. - Change order of branches to check for len<=8 first. - In len<=16 case, do one multiply to mix the data instead of using the logic from go/absl-hash-rl (reinforcement learning was used to optimize the instruction sequence). - Add special handling for len<=32 cases in 64-bit architectures. Evan Brown 2024-12-30 12:42:15 -08:00
  • f28f81c5ba Test that using a table that was moved-to from a moved-from table fails in sanitizer mode. Evan Brown 2024-12-30 10:42:35 -08:00
  • fcc8630eed Remove a trailing comma causing an issue for an OSS user Derek Mauro 2024-12-28 14:17:10 -08:00
  • 688dd51cc4 Add missing includes in hash.h. Evan Brown 2024-12-27 08:22:01 -08:00
  • 98efd758c4 Use the public implementation rule for "@bazel_tools//tools/cpp:clang-cl" Derek Mauro 2024-12-27 08:10:12 -08:00
  • ce986ae569 Import of CCTZ from GitHub. Derek Mauro 2024-12-24 13:56:02 -08:00
  • 4198d9a96a Change the definition of is_trivially_relocatable to be a bit less conservative. Evan Brown 2024-12-23 11:14:56 -08:00
  • 90a7ba66e8 Updates to CI to support newer versions of tools Derek Mauro 2024-12-23 10:56:36 -08:00
  • 5913446e0c Check if ABSL_HAVE_INTRINSIC_INT128 is defined David Majnemer 2024-12-20 11:32:12 -08:00
  • a54f8028db Print hash expansions in the hash_testing error messages. Evan Brown 2024-12-20 10:09:24 -08:00
  • 63c03fec44 Avoid flakiness in notification_test on MSVC. Evan Brown 2024-12-20 09:44:19 -08:00
  • f7bdb7a2b6 Roll back: Add more debug capacity validation checks on moves. Evan Brown 2024-12-20 08:20:53 -08:00
  • 50292b7d50 Add more debug capacity validation checks on moves. Evan Brown 2024-12-19 14:34:39 -08:00
  • cd9dd4266c Add macro versions of nullability annotations. Abseil Team 2024-12-19 08:31:31 -08:00
  • 8dfa6b7327 Improve fork-safety by opening files with O_CLOEXEC. Abseil Team 2024-12-18 22:59:00 -08:00
  • f0e59054ff Move ABSL_HARDENING_ASSERTs in constexpr methods to their own lines. Abseil Team 2024-12-18 11:25:00 -08:00
  • d6a75d96e6 Add test cases for absl::Hash: - That hashes are consistent for the same int value across different int types. - That hashes of vectors of strings are unequal even when their concatenations are equal. - That FragmentedCord hashes works as intended for small Cords. Evan Brown 2024-12-18 10:19:29 -08:00
  • 553c74b785 Skip the IterationOrderChangesOnRehash test case in ASan mode because it's flaky. Evan Brown 2024-12-18 09:58:06 -08:00
  • f623b01435 Add missing includes in absl hash. Evan Brown 2024-12-17 13:49:15 -08:00
  • e281c1790b Try to use file descriptors in the 2000+ range to avoid mis-behaving client interference. Abseil Team 2024-12-17 11:04:50 -08:00
  • caec5f1ca5 Add weak implementation of the __lsan_is_turned_off in Leak Checker Abseil Team 2024-12-17 10:28:23 -08:00
  • 03c34a9eea Fix a bug where EOF resulted in infinite loop. Abseil Team 2024-12-16 12:54:38 -08:00
  • 82d40e63a2 static_assert that absl::Time and absl::Duration are trivially destructible. Abseil Team 2024-12-16 12:19:29 -08:00
  • d30f5781a4 Move Duration ToInt64<unit> functions to be inline. Abseil Team 2024-12-16 11:44:28 -08:00
  • 85c701da92 string_view: Add defaulted copy constructor and assignment Abseil Team 2024-12-16 07:00:03 -08:00
  • 5c28547455 Use #ifdef to avoid errors when -Wundef is used. Abseil Team 2024-12-16 06:25:37 -08:00
  • 3de434ab4c Strip PAC bits for return addresses in stack traces Abseil Team 2024-12-13 11:25:35 -08:00
  • fffac1157d PR #1794: Update cpu_detect.cc fix hw crc32 and AES capability check, fix undefined Dertosh 2024-12-13 10:58:56 -08:00
  • 940e0ec36a PR #1790: Respect the allocator's .destroy method in ~InlinedVector Arthur O'Dwyer 2024-12-12 11:51:58 -08:00
  • c935131138 Cast away nullability in the guts of CHECK_EQ (et al) where Clang doesn't see that the nullable string returned by Check_EQImpl is statically nonnull inside the loop. Andy Getzendanner 2024-12-11 08:39:04 -08:00
  • 7bc6543deb string_view: Correct string_view(const char*, size_type) docs Abseil Team 2024-12-11 06:27:03 -08:00
  • 28528f595e Add support for std::string_view in StrCat even when absl::string_view != std::string_view. Abseil Team 2024-12-10 12:14:58 -08:00
  • 45287476e8 Misc. adjustments to unit tests for logging. Abseil Team 2024-12-10 08:27:37 -08:00
  • 9e3b68ac3b Use local_config_cc from rules_cc and make it a dev dependency Abseil Team 2024-12-05 01:45:47 -08:00
  • 7d96b2e93d Add additional iteration order tests with reservation. Reserved tables have a different way of iteration randomization compared to gradually resized tables (at least for small tables). Vitaly Goldshteyn 2024-12-04 13:53:34 -08:00
  • 7316f5616b Use all the bits (popcount) in FindFirstNonFullAfterResize and PrepareInsertAfterSoo. Vitaly Goldshteyn 2024-12-04 09:45:17 -08:00
  • 9e2c537591 Mark ConsumePrefix, ConsumeSuffix, StripPrefix, and StripSuffix as constexpr since they are all pure functions. Abseil Team 2024-12-04 01:11:29 -08:00
  • 742a0ed42c PR #1789: Add missing #ifdef pp directive to the TypeName() function in the layout.h i80287 2024-12-03 10:02:35 -08:00
  • a3f7e9866c PR #1788: Fix warning for sign-conversion on riscv Lu Yahan 2024-12-03 09:58:29 -08:00
  • 67576965ab Make StartsWith and EndsWith constexpr. Abseil Team 2024-12-02 14:59:40 -08:00
  • a04ef10cd2 Simplify logic for growing single group table. Vitaly Goldshteyn 2024-12-02 13:20:33 -08:00
  • 95950b32c5 Document that absl::Time and absl::Duration are trivially destructible. Abseil Team 2024-12-02 11:15:04 -08:00
  • c7cf999bda Change some C-arrays to std::array as this enables bounds checking in some hardened standard library builds Derek Mauro 2024-11-26 10:29:23 -08:00
  • c05bceb4bd Replace outdated select() on --cpu with platform API equivalent. Abseil Team 2024-11-26 09:44:13 -08:00
  • 2fcebef792 Take failure_message as const char* instead of string_view in LogMessageFatal and friends. Andy Getzendanner 2024-11-20 14:27:16 -08:00
  • b67caffec1 Mention c_any_of in the function comment of absl::c_linear_search. Abseil Team 2024-11-19 13:23:51 -08:00
  • 4a437e89f3 Import of CCTZ from GitHub. Abseil Team 2024-11-19 12:31:14 -08:00
  • ee5e49f171 Rewrite some string_view methods to avoid a -Wunreachable-code warning Derek Mauro 2024-11-19 08:01:24 -08:00
  • 917bfee465 IWYU: Update includes and fix minor spelling mistakes. Laramie Leavitt 2024-11-15 14:23:43 -08:00
  • e3cf5b3de9 Add comment on how to get next element after using erase. Abseil Team 2024-11-15 10:29:40 -08:00
  • 8f739d18b9 Add ABSL_ATTRIBUTE_LIFETIME_BOUND and a doc note about absl::LogAsLiteral to clarify its intended use. Andy Getzendanner 2024-11-14 11:25:25 -08:00
  • c31305634b Import of CCTZ from GitHub. Abseil Team 2024-11-13 11:54:25 -08:00
  • 3a3b7e4667 Reduce memory consumption of structured logging proto encoding by passing tag value Abseil Team 2024-11-13 06:59:31 -08:00
  • 27a0c7308f Remove usage of _LIBCPP_HAS_NO_FILESYSTEM_LIBRARY. Derek Mauro 2024-11-11 13:02:51 -08:00
  • 8d272b2871 Make Span's relational operators constexpr since C++20. Abseil Team 2024-11-11 12:03:07 -08:00
  • feb6aab8db distributions: support a zero max value in Zipf. Aaron Jacobs 2024-11-08 14:50:38 -08:00
  • 892450977a PR #1786: Fix typo in test case. c8ef 2024-11-08 13:48:03 -08:00
  • 6312b70b9d absl/random: run clang-format. Aaron Jacobs 2024-11-08 13:45:04 -08:00
  • dee1b6c2a2 Add some nullability annotations in logging and tidy up some NOLINTs and comments. Andy Getzendanner 2024-11-08 08:39:31 -08:00
  • 0c7c676f09 CMake: Change the default for ABSL_PROPAGATE_CXX_STD to ON Derek Mauro 2024-11-07 09:24:24 -08:00
  • a3027054ab Delete UnvalidatedMockingBitGen Justin Bassett 2024-11-06 13:08:17 -08:00
  • 78ed38cf2c PR #1783: [riscv][debugging] Fix a few warnings in RISC-V inlines Alexey Pavlyutkin 2024-11-06 11:30:17 -08:00
  • e83ef27968 Add conversion operator to std::array for StrSplit. Jake Cobb 2024-11-06 07:54:19 -08:00
  • 4794821d8b Add a comment explaining the extra comparison in raw_hash_set::operator==. Also add a small optimization to avoid the extra comparison in sets that use hash_default_eq as the key_equal functor. Evan Brown 2024-11-05 12:50:56 -08:00
  • 8596c6e7f5 Add benchmark for absl::HexStringToBytes Derek Mauro 2024-11-04 07:34:23 -08:00
  • 85c26befda Avoid installing options.h with the other headers Florent Castelli 2024-11-04 04:41:24 -08:00
  • 4b4f41e93d Add ABSL_ATTRIBUTE_LIFETIME_BOUND to absl::Span constructors. Abseil Team 2024-11-01 13:29:16 -07:00