diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2024-04-28 09:22:17 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2024-04-28 09:34:21 +0300 |
commit | f76727099a283f0896df39bcfb3ec510edc7772a (patch) | |
tree | 81bf9c6a9163b1c72ba2fcf85afeffd7952e5feb | |
parent | 5469f9d2e058a0170d5aeba5c19099017be53c94 (diff) | |
download | ydb-f76727099a283f0896df39bcfb3ec510edc7772a.tar.gz |
Update contrib/restricted/boost/atomic to 1.85.0
afbc01f7efcdebf981bb4d24dbb079108d7c3592
-rw-r--r-- | contrib/restricted/boost/atomic/include/boost/atomic/detail/pause.hpp | 7 | ||||
-rw-r--r-- | contrib/restricted/boost/atomic/ya.make | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/contrib/restricted/boost/atomic/include/boost/atomic/detail/pause.hpp b/contrib/restricted/boost/atomic/include/boost/atomic/detail/pause.hpp index efdfb62b6a..0d47c927aa 100644 --- a/contrib/restricted/boost/atomic/include/boost/atomic/detail/pause.hpp +++ b/contrib/restricted/boost/atomic/include/boost/atomic/detail/pause.hpp @@ -48,6 +48,13 @@ BOOST_FORCEINLINE void pause() BOOST_NOEXCEPT __asm__ __volatile__("pause;" : : : "memory"); #elif (defined(__ARM_ARCH) && __ARM_ARCH >= 8) || defined(__ARM_ARCH_8A__) || defined(__aarch64__) __asm__ __volatile__("yield;" : : : "memory"); +#elif defined(__riscv) && __riscv_xlen == 64 +#if defined(__riscv_zihintpause) + __asm__ __volatile__("pause" : : : "memory"); +#else + /* Encoding of the pause instruction */ + __asm__ __volatile__ (".4byte 0x100000F"); +#endif #endif #endif } diff --git a/contrib/restricted/boost/atomic/ya.make b/contrib/restricted/boost/atomic/ya.make index beac80ecb1..8151509c51 100644 --- a/contrib/restricted/boost/atomic/ya.make +++ b/contrib/restricted/boost/atomic/ya.make @@ -6,9 +6,9 @@ LICENSE(BSL-1.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -VERSION(1.84.0) +VERSION(1.85.0) -ORIGINAL_SOURCE(https://github.com/boostorg/atomic/archive/boost-1.84.0.tar.gz) +ORIGINAL_SOURCE(https://github.com/boostorg/atomic/archive/boost-1.85.0.tar.gz) PEERDIR( contrib/restricted/boost/align |