Skip to content

Commit

Permalink
Merge pull request #439 from ckormanyos/qemu_and_syntax
Browse files Browse the repository at this point in the history
Update qemu CI runs and syntax
  • Loading branch information
ckormanyos authored Dec 8, 2024
2 parents 7c5abe8 + 9bf358b commit fbf0b37
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/wide_integer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,11 @@ jobs:
fetch-depth: '0'
- name: update-tools
run: |
sudo apt install libncursesw5
sudo apt update
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncursesw5_6.3-2ubuntu0.1_amd64.deb
sudo apt install ./libncursesw5_6.3-2ubuntu0.1_amd64.deb
mkdir -p emu_env && cd emu_env
wget --no-check-certificate https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
tar -xf arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
Expand Down
4 changes: 2 additions & 2 deletions boost/multiprecision/uintwide_t_backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
constexpr auto negate() -> void
{
m_value.negate();
}
} // LCOV_EXCL_LINE

WIDE_INTEGER_NODISCARD constexpr auto compare(const uintwide_t_backend& other_mp_cpp_backend) const -> int
{
Expand Down Expand Up @@ -326,7 +326,7 @@
constexpr auto eval_multiply(uintwide_t_backend<MyWidth2, MyLimbType, MyAllocatorType>& result, const uintwide_t_backend<MyWidth2, MyLimbType, MyAllocatorType>& x) -> void
{
result.representation() *= x.crepresentation();
}
} // LCOV_EXCL_LINE

template<
#if defined(WIDE_INTEGER_NAMESPACE)
Expand Down
31 changes: 16 additions & 15 deletions test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#include <iomanip>
#include <iostream>
#include <sstream>

#if !defined(BOOST_VERSION)
#error BOOST_VERSION is not defined. Ensure that <boost/version.hpp> is properly included.
Expand Down Expand Up @@ -643,19 +644,19 @@ auto run() -> bool // NOLINT(readability-function-cognitive-complexity)
const auto execution_time = stopwatch_type::elapsed_time<float>(my_stopwatch);

{
const auto flg = std::cout.flags();

std::cout << "result_is_ok: "
<< std::boolalpha
<< result_is_ok
<< ", time: "
<< std::fixed
<< std::setprecision(1)
<< execution_time
<< "s"
<< std::endl;

std::cout.flags(flg);
std::stringstream strm { };

strm << "result_is_ok: "
<< std::boolalpha
<< result_is_ok
<< ", time: "
<< std::fixed
<< std::setprecision(1)
<< execution_time
<< "s"
;

std::cout << strm.str() << std::endl;
}

return result_is_ok;
Expand All @@ -665,9 +666,9 @@ auto run() -> bool // NOLINT(readability-function-cognitive-complexity)

auto main() -> int // NOLINT(bugprone-exception-escape)
{
const auto result_is_ok = local::run();
const bool result_is_ok { local::run() };

const auto result_of_main = (result_is_ok ? 0 : -1);
const int result_of_main { (result_is_ok ? static_cast<int>(INT8_C(0)) : static_cast<int>(INT8_C(-1))) };

std::cout << "result_of_main: " << result_of_main << std::endl;

Expand Down

0 comments on commit fbf0b37

Please sign in to comment.