Commit Graph

  • e532e9c34d BOOST_TEST_MEM_EQ() macro returns bool to aid code that adds additional reporting on errors. Beman 2015-03-20 07:41:54 -04:00
  • 5ab08db7a4 Use BOOST_NO_CXX11_NUMERIC_LIMITS for testing with C++03 standard libraries. Always show test output. Beman 2015-03-16 08:58:42 -04:00
  • 44542694e3 Add round trip test to auto test. Remove tests made redundant by auto test. floating-point-test Beman 2015-03-14 09:45:50 -04:00
  • cea2be8023 Add auto_test cases lowest(), epsilon(), 0.0, -0.0, 1.0, -1.0 Beman 2015-03-14 09:01:55 -04:00
  • ff4b22bdec Add more auto_test cases. Beman 2015-03-14 08:20:41 -04:00
  • affdcac443 Rename float_test to floating_point_test. Old name was unclear. Might have incorrectly been read as "test of type float" instead of "test of floating point types". Beman 2015-03-11 10:36:34 -04:00
  • 7460870381 Comment out failing signaling_NaN() tests. Beman 2015-03-10 16:37:36 -04:00
  • 13b0d7b9ba Add missing #include <limits>. Beman 2015-03-10 16:34:47 -04:00
  • 4f2a715c9f Fully implement float_value_test and double_value_test Beman 2015-03-09 17:11:54 -04:00
  • 09ae6c961f Rename BOOST_TEST_MEMCMP_EQ to BOOST_TEST_MEM_EQ. Add float_test to Jamfile. Add float_value_test() and double_value_test(). Beman 2015-03-08 10:50:39 -04:00
  • adc09abc7a Also show numeric_limits values in big and little endian hex. Beman 2015-03-07 08:59:14 -05:00
  • 072b495240 Add Endian specific lightweight_test.hpp with new macro BOOST_TEST_MEMCMP_EQ that uses std::memcmp(...)==0 to determine equality. Bitwise equality is the standard we want floating point round trips to be held to, since NaN's are then equal. Beman 2015-03-05 10:52:28 -05:00
  • 482bcb0855 report_limits() working. Beman 2015-03-04 14:51:39 -05:00
  • a968c67510 Initial commit of infrastructure. No test cases yet. Beman 2015-03-04 11:48:21 -05:00
  • ea0aa5280f copy from develop Beman 2015-02-23 08:06:31 -05:00
  • 63a5b4ff54 Manually apply a few renaming corrections. Reorder typedefs in synopsis for consistency. Beman 2015-02-23 08:06:01 -05:00
  • 9c0cbae556 Revert the default (*_t) types to unaligned, and used *_at to identify the aligned types. See mini-review thread for rationale. Beman 2015-02-23 07:24:17 -05:00
  • b6b03ea900 Fix incorrect header guard Beman 2015-02-21 09:02:41 -05:00
  • 963f00ec8f Add missing one byte aligned types, plus other minor fixes. Beman 2015-02-21 07:38:03 -05:00
  • a16b688654 copy from develop Beman 2015-02-17 11:21:49 -05:00
  • c62aa232e1 Apply mini-review editorial fixes from Rob Stewart, mostly just accepting his suggested wording. Beman 2015-02-17 11:21:21 -05:00
  • 8b7a140f0e Test actual object. Mini-review suggestion from Rob Stewart. Beman 2015-02-17 09:46:59 -05:00
  • 3aa5873c05 copy from develop Beman 2015-02-16 19:33:45 -05:00
  • b0ef03b9d6 Rearranges rows and columns in tables. Add big_int8_t, big_uint8_t, little_int8_t, little_uint8_t arithmetic and buffer types, in response to mini-review query. Beman 2015-02-16 19:31:48 -05:00
  • d0dc573ec1 Refer to endian type size in terms of bits, for consistency with names (e.g. big_int40_ut is 40-bits, not 40-bytes). Add example to "Does endianness have any uses outside of ...". Beman 2015-02-16 19:28:11 -05:00
  • 6dcda67ed6 Specify font-family: "courier new", courier, serif; as it makes the Windows result prettier on all browsers tested (IE, Firefox, Chrome). Beman 2015-02-12 17:57:05 -05:00
  • 2663fc447c copy from develop Beman 2015-02-11 09:09:44 -05:00
  • c0fbae2d2a Wording tweaks from Rob Stewart. Modify styles.css for more uniform presentation across browsers. Beman 2015-02-11 09:02:58 -05:00
  • f184fd934e Add two FAQ entries in response to mini-review question from Rob Stewart. Add Ack names. Fix HTML boo boos. Beman 2015-02-09 08:17:15 -05:00
  • 41e9bfa887 copy from develop Beman 2015-01-27 10:19:05 -05:00
  • 09ead95d10 Add "Future directions" section. Beman 2015-01-27 10:18:33 -05:00
  • c8b6caca91 copy from develop Beman 2015-01-26 09:17:11 -05:00
  • 2a4584a413 Add recommendation to protect against assignment ills, with example. Beman 2015-01-26 09:16:41 -05:00
  • 9bc8df5513 copy from develop Beman 2015-01-25 10:21:25 -05:00
  • 27a6d36327 Add "C++03 support for C++11 features" Section at the suggestion of Philip Bennefall. Beman 2015-01-25 10:20:45 -05:00
  • 88dc95fb5c Initial commit and merge from develop. Beman 2015-01-23 09:24:12 -05:00
  • ee20f81adb copy from develop Beman 2015-01-19 08:46:48 -05:00
  • 512287dfa7 Clear some warnings in test programs. Beman 2015-01-19 08:44:19 -05:00
  • 3d814f4f52 Add docs for BOOST_ENDIAN_DEPRECATED_NAMES compatibility. Fix inspect issues. Beman 2015-01-19 07:41:28 -05:00
  • adee2fe513 Add support for deprecated names from pre-review releases. Beman 2015-01-18 19:48:27 -05:00
  • e9ae69f3d0 Don another pass through the docs. Beman 2015-01-17 16:53:41 -05:00
  • 35f4c47a22 Add endian_buffer stream inserter and extractor, beef up buffer_test a bit. Beman 2015-01-17 10:25:29 -05:00
  • 10bcb52d97 Add loop_time_test options Beman 2015-01-15 09:17:31 -05:00
  • 810f5453a6 Work-in-progress, including various bug fixes and doc updates. Beman 2015-01-14 16:28:30 -05:00
  • 321d5a087a For X86 and X64 architectures, which permit unaligned loads and stores, unaligned little endian buffer and arithmetic types use regular loads and stores when the size is exact. This makes unaligned little endian buffer and arithmetic types significantly more efficient on these architectures.(Pull request from Jeremy Maitin-Shepard) Docs updated, but timing results have not yet been updated. Beman 2015-01-06 16:57:53 -05:00
  • 0cdcb5f048 Rename build directory to benchmark so will not automatically be built by b2 in boost-root. Beman 2015-01-05 07:16:49 -05:00
  • c440b3b7da Update modification date. Explicit updated needed because of FrontPage bug. Beman 2015-01-04 09:26:49 -05:00
  • a32c13451b Remove Release History details that are already covered by Mini-review page. Add FAQ for C++03 compiler support. Beman 2015-01-04 09:15:28 -05:00
  • 08b5a27461 Add examples. Beman 2015-01-04 09:13:15 -05:00
  • 04d079fa61 Refactor "Choosing the approach" into its own page. It was dominating the main home page, yet is really a topic for study after other material is absorbed. Beman 2015-01-02 10:46:53 -05:00
  • ca8b904502 Minor edits. Update TOC. Beman 2014-12-31 10:32:47 -05:00
  • 48f7363cd7 Minor wording refinements. Beman 2014-12-31 10:15:47 -05:00
  • 4669f1b04b Add design patterns section Beman 2014-12-31 09:57:16 -05:00
  • d92aa4550a copy from develop Beman 2014-12-17 17:49:56 -05:00
  • 25143c6b9a Clear Inspection Report problems. Beman 2014-12-17 17:48:54 -05:00
  • 48ea9cc333 Beef up index.html TOC, add msg to publish.bat. Beman 2014-12-17 16:26:33 -05:00
  • 79709fe054 Add additional use case Beman 2014-12-17 11:57:35 -05:00
  • 25a00586a2 Replace local ref to boost.png with full URL so works for gh-pages and other environments where local ref is not available. Beman 2014-12-17 09:21:28 -05:00
  • c1e46997c8 Initial commit Beman 2014-12-17 09:19:16 -05:00
  • 3fafd83028 Sync with develop Beman 2014-12-17 08:41:40 -05:00
  • 5407a099d3 Add use cases Beman 2014-12-16 11:45:22 -05:00
  • fb87b21a0d Minor edits. Beman 2014-12-16 10:17:40 -05:00
  • d15b2fdb1c Refined rationale for choice of exact-length types for conversion support. Beman 2014-12-16 08:49:01 -05:00
  • 6de2f69b77 Get MSVC 64-builds working under Visual Studio. Beman 2014-12-15 20:20:16 -05:00
  • f3d0496fae Remove name_changes.sed. It was a development artifact. feature/buffer-types Beman 2014-12-15 08:53:59 -05:00
  • 05ea08995c Pass through index.html making corrections and editorial changes. Beman 2014-12-15 08:40:35 -05:00
  • e8530e4563 Add FAQ entry for built-in integer names. Beman 2014-12-11 12:05:31 -05:00
  • 971ba888d6 Decompose Reversible into EndianReversible and EndianReversibleInplace. Beman 2014-12-11 11:41:44 -05:00
  • 6c173766e3 Eliminate gcc -Wconversion warnings. Beman 2014-12-10 15:03:06 -05:00
  • dcde9463fc Do not define _SCL_SECURE_NO_WARNINGS or _CRT_SECURE_NO_WARNINGS if already defined (such as on the command line), plus related cleanups. Beman 2014-12-10 10:26:49 -05:00
  • 66a7a0bfac Minor editing tweaks. Beman 2014-12-10 09:58:01 -05:00
  • c201455c84 Change "in_place" to "inplace". Rationale: shortens names without impacting expressiveness. Beman 2014-12-10 09:39:03 -05:00
  • 2cbcd6f7d3 Rename "runtime_conditional_reverse" to "conditional_reverse". The differing number of arguments is sufficient to disambiguate the compile-time and run-time overloads. Beman 2014-12-10 09:26:47 -05:00
  • 51b990eb50 Add associated-files.vcxproj and related infrastructure so Visual Studio IDE find-in-files and replace-in-files works for associated files like headers and HTML files. Beman 2014-12-10 09:00:43 -05:00
  • c8d4ab2d11 Add comment about Requirements so it won't be forgotten. Beman 2014-12-10 08:40:56 -05:00
  • dcca2835a9 Rename "reverse_endianness" to "endian_reverse". Shorter but still plenty explicit. See bikeshed.txt for alternatives considered. Beman 2014-12-10 08:30:30 -05:00
  • e4466edf4e Drop the _unless_big and _unless_little functions. KISS. They were confusing, and less confusing names were never found. Beman 2014-12-09 20:43:47 -05:00
  • 55a65c3806 Revert to again supply the reverse_endianness_in_place template. This has the effect of providing a default reverse_endianness_in_place for user-defined types. Add error checking for UDT's to verify this works as desired. Provide a note in the conversion docs to that effect. Beman 2014-12-09 11:36:42 -05:00
  • a0b5805b73 Minor namespace detail cleanup. Beman 2014-12-09 07:38:04 -05:00
  • 7b86b251d7 Change example to use buffers as arithmetic is not needed. Beman 2014-12-09 07:13:55 -05:00
  • 4b6019c82e Use hex in literal for value where octal is confusing. Beman 2014-12-09 07:10:25 -05:00
  • f0532a3854 Improve comments. Beman 2014-12-09 07:08:41 -05:00
  • 28fd6ef4b0 Bring docs in sync with implementation. Still somewhat incomplete. Beman 2014-12-09 07:04:48 -05:00
  • f96cec4f17 Work-in-progress on endian_buffer docs. Beman 2014-12-06 08:16:35 -05:00
  • 7a77827a71 Current very unstable state. Beman 2014-12-05 09:50:45 -05:00
  • db16b51b41 Tweak comments. Beman 2014-12-05 09:05:05 -05:00
  • b6c9150aea Doc tweeks. Beman 2014-12-05 09:03:17 -05:00
  • 439207b388 Add conversion_use_case Beman 2014-12-05 09:01:59 -05:00
  • e2045b7ffa Finalize buffer and arithmetic decomposition. Finalize name changes. Finalize test cases. Remove cruft. Docs still to do. Beman 2014-11-26 10:04:33 -05:00
  • bb785ed8e0 UDT tests added. Passing on Windows, all local compilers. Beman 2014-11-25 11:31:30 -05:00
  • 7b119ba0ee Add full set of modify in place tests. Beman 2014-11-25 09:58:59 -05:00
  • 56103a7bc6 Finish conversion.hpp cleanup after name changes. conversion_test.cpp return-by-value tests reorganized and passing. UTD and in-place tests still to come. Add doc/bikeshed.txt to keep record of naming rationale. Beman 2014-11-24 10:04:23 -05:00
  • 4197f996ac More conversion.hpp fixes. Some, but not all, conversion_test tests passing. Beman 2014-11-23 10:38:21 -05:00
  • ce73f59741 Add "_endianness" to the names of the two customization points. These names must be defined in user namespaces (for ADL to work) and so must be much more explicit than names that are defined in namespace endian. Beman 2014-11-23 08:40:58 -05:00
  • f9c562b4b4 Rework conversion.hpp: Make the UDT customization point for the value returning conversion functions much more explicit. Provide a separate UDT customization point for the in-place conversion functions, and reverse_in_place() overloads for the built-in arithmetic types. Eliminate the unsafe general-use reverse functions. With explicit customization points these are no longer needed. Complete the renaming of conversion functions started in the prior commit. The reverse and reverse_in_place names are much more meaningful and less likely to be misunderstood. The longer "reverse_in_place" name will hopefully at least slow users down before inappropriate (and possibly unsafe use, such as when trying to recover data after an exception). Beman 2014-11-22 16:27:11 -05:00
  • 49a91c293a Rename endian_buffer typedefs. New names a bit longer, but also a bit more explicit and more obviously related to endian_arithmetic typedefs. Beman 2014-11-21 15:49:28 -05:00
  • 84faaa7bbf Rename the conversion functions to discourage unthinking use of the in-place versions as these are unsafe in that they effectively break the type system by treating the buffer as an undescriminated union. Remove the synonym functions based on names popularized by BSD, OS X, and Linux since these are permitted to be implemented as macros, which would cause endless difficulties if encountered. Beman 2014-11-20 15:38:25 -05:00
  • 8a9ea6747d Preliminary doc changes to reflect addition of buffers. Beman 2014-11-19 15:58:15 -05:00
  • fc7733ade1 Major renaming. Class "endian" becomes class "endian_arithmetic" to mimic the C++ standard's description of such types as "arithmetic types". Rename header accordingly. The convenience typedefs have been changed shorten aligned names, as they are often being, but keeping the unaligned type names relatively short via a simple "_ut" suffix. Beman 2014-11-19 10:53:11 -05:00
  • 61d9046348 Remove "operator value_type() const noexcept" from buffers. Make the buffer ctor explicit. Buffers were requested by people who do not want automatic conversions because they want full control over conversions, and are very concerned about "efficiency". Beman 2014-11-18 14:33:31 -05:00