Commit Graph
12 Commits
Author SHA1 Message Date
DawnMagnet 49cf67006b Refactor code structure for improved readability and maintainability 2026-05-05 16:14:52 +08:00
DawnMagnet 47131c9d25 Add xmake configuration for project build management 2026-05-05 16:10:07 +08:00
DawnMagnet 4b0924d4a1 Add stack size configuration for benchmarks on MSVC 2026-05-05 13:54:28 +08:00
DawnMagnet 675f5e4747 Refactor code structure for improved readability and maintainability 2026-05-05 13:49:56 +08:00
DawnMagnet 8bd5e0c2b3 Add .clang-format configuration and Makefile for build management
- Introduced a .clang-format file to standardize C++ code formatting across the project.
- Created a Makefile to facilitate building, testing, and benchmarking with various configurations.
- Added targets for configuring and building with different compilers (cl, g++, clang++).
- Included formatting targets to check and apply clang-format to specified source files.
2026-05-05 13:10:28 +08:00
DawnMagnet dfd999e665 Update CMake configuration and README for build type defaults 2026-05-05 00:03:34 +08:00
DawnMagnet 56f8fbb701 Add bandwidth benchmarking and reporting for BAQ bulk operations 2026-05-04 23:55:54 +08:00
DawnMagnet 8e5c40bb22 Enhance AVX support: add AVX512BW backend and update intrinsics checks 2026-05-04 22:56:19 +08:00
DawnMagnet a8b5e91e81 Add bitserial bulk packing and unpacking functionality
- Introduced bulk.hpp for efficient bit packing and unpacking of various data types.
- Implemented scalar and AVX2 optimized functions for packing and unpacking bits.
- Added configuration checks for C++20 and AVX2 support in config.hpp.
- Created comprehensive tests in bitserial_tests.cpp to validate functionality across unsigned, signed, boolean, float, double, nested structures, and arrays.
- Included edge case tests for bulk packing and unpacking to ensure correctness.
2026-05-04 22:37:23 +08:00
DawnMagnet ad67d5c71b Add Visual Studio project files and enforce C++20 requirements for MSVC 2026-04-29 11:03:53 +08:00
DawnMagnet de8f12c4c1 Refactor compiler options for bitserial_test and update member macro definitions 2026-04-28 22:18:20 +08:00
DawnMagnet 62f73f51a1 Add comprehensive tests for bitserial serialization and deserialization
- Implemented tests for unsigned and signed integers with various bit widths.
- Added tests for boolean fields, float and double types including special values.
- Created tests for nested structs and fixed-size arrays with natural and custom bit widths.
- Included tests for hex and byte conversions, ensuring correct serialization and deserialization.
- Validated error handling for buffer size issues and hex parsing errors.
- Demonstrated a real protocol example with an IPv4 header.
- Conducted a comprehensive stress test covering all scalar types, nested structures, and arrays.
- Introduced a zero-allocation path for user-provided buffers.
- Added constexpr tests for compile-time serialization.
2026-04-28 21:07:25 +08:00