Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/int128-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ content:
sources:
- url: ..
start_path: doc
branches: develop
edit_url: 'https://github.com/cppalliance/int128/edit/develop/{path}'
output:
dir: html
ui:
Expand Down
2 changes: 1 addition & 1 deletion doc/modules/ROOT/pages/bit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ https://www.boost.org/LICENSE_1_0.txt
////

[#Bit]
= `<bit>`
= `<bit>` Support
:idprefix: bit_

[source,c++]
Expand Down
6 changes: 3 additions & 3 deletions doc/modules/ROOT/pages/examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Min - 1: 170141183460469231731687303715884105727
====
[source, c++]
----
include::example$bit.cpp[]
include::example$bit.cpp[tags=**;!exclude]
----
====

Expand Down Expand Up @@ -348,7 +348,7 @@ signed_value / 4U = 0
====
[source, c++]
----
include::example$math_and_random.cpp[]
include::example$math_and_random.cpp[tags=**;!exclude]
----

.Example Output (values vary per run)
Expand Down Expand Up @@ -439,7 +439,7 @@ int128_t max: 170141183460469231731687303715884105727
====
[source, c++]
----
include::example$fmt_format.cpp[]
include::example$fmt_format.cpp[tags=**;!exclude]
----

.Expected Output
Expand Down
4 changes: 4 additions & 0 deletions examples/bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

// #include <boost/int128.hpp>

// tag::exclude[]
#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-variable"
Expand All @@ -32,6 +33,7 @@ int main()

#else

// end::exclude[]
int main()
{
// The functions from bit are only available for uint128_t
Expand Down Expand Up @@ -80,5 +82,7 @@ int main()

return 0;
}
// tag::exclude[]

#endif
// end::exclude[]
6 changes: 6 additions & 0 deletions examples/fmt_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
// For C++20 std::format support, use <boost/int128/format.hpp> instead,
// which provides the same formatting capabilities with std::format.

// tag::exclude[]
#define FMT_HEADER_ONLY
// end::exclude[]
#include <boost/int128/int128.hpp>
#include <boost/int128/fmt_format.hpp>

// tag::exclude[]
#ifdef BOOST_INT128_HAS_FMT_FORMAT

// end::exclude[]
#include <fmt/format.h>
#include <iostream>

Expand Down Expand Up @@ -112,6 +116,7 @@ int main()

return 0;
}
// tag::exclude[]

#else

Expand All @@ -125,3 +130,4 @@ int main()
}

#endif
// end::exclude[]
2 changes: 2 additions & 0 deletions examples/math_and_random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <boost/int128.hpp>
#include <boost/int128/random.hpp> // Not included in the convenience header, but needed for boost.random interop

// tag::exclude[]
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wfloat-equal"
Expand All @@ -16,6 +17,7 @@
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif

// end::exclude[]
#include <boost/math/statistics/univariate_statistics.hpp>
#include <boost/random/uniform_int_distribution.hpp>
#include <iostream>
Expand Down
4 changes: 2 additions & 2 deletions ports/int128/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cppalliance/int128
REF v2.0.0
SHA512 0222193058f7363d12d97a23bf6bb38f9dc4cdb1cb017c21d3c06dc2515b18c4d9207ccda465f25f7b1b1923effc397d753c6e25079f1cdbf1c28c1f5da9f679
REF v3.0.0
SHA512 e65a61782f6b5d99fcbe452b441725410a54b57f0737a87b3a1da4a0d0be90445c146d7b6b6795a5cd1ccef0a573144f4d5df634c35675b9b38365572bf3ff35
HEAD_REF master
)

Expand Down
2 changes: 1 addition & 1 deletion ports/int128/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "int128",
"version": "2.0.0",
"version": "3.0.0",
"description": "Portable and performant 128-bit integers",
"homepage": "https://github.com/cppalliance/int128",
"license": "BSL-1.0",
Expand Down
Loading