1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
/* * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * Copyright (c) 2017-2025 Andrey Semashev */ /*! * \file atomic/detail/extra_ops_msvc_x86.hpp * * This header contains implementation of the extra atomic operations for x86. */ #ifndef BOOST_ATOMIC_DETAIL_EXTRA_OPS_MSVC_X86_HPP_INCLUDED_ #define BOOST_ATOMIC_DETAIL_EXTRA_OPS_MSVC_X86_HPP_INCLUDED_ #include #include #include #include #include #include #include #include #ifdef BOOST_HAS_PRAGMA_ONCE #pragma once #endif namespace boost { namespace atomics { namespace detail { #if defined(_M_IX86) template< typename Base, bool Signed > struct extra_operations< Base, 1u, Signed, true > : public extra_operations_generic< Base, 1u, Signed > { using base_type = extra_operations_generic< Base, 1u, Signed >; using storage_type = typename base_type::storage_type; static BOOST_FORCEINLINE storage_type fetch_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type old_val; __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax neg dl lock cmpxchg byte ptr [ecx], dl jne again mov old_val, al }; base_type::fence_after(order); return old_val; } static BOOST_FORCEINLINE storage_type negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type new_val; __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax neg dl lock cmpxchg byte ptr [ecx], dl jne again mov new_val, dl }; base_type::fence_after(order); return new_val; } static BOOST_FORCEINLINE bool negate_and_test(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax neg dl lock cmpxchg byte ptr [ecx], dl jne again test dl, dl setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE void opaque_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax neg dl lock cmpxchg byte ptr [ecx], dl jne again }; base_type::fence_after(order); } static BOOST_FORCEINLINE storage_type bitwise_and(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage movzx ecx, v xor edx, edx movzx eax, byte ptr [edi] align 16 again: mov dl, al and dl, cl lock cmpxchg byte ptr [edi], dl jne again mov v, dl }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type bitwise_or(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage movzx ecx, v xor edx, edx movzx eax, byte ptr [edi] align 16 again: mov dl, al or dl, cl lock cmpxchg byte ptr [edi], dl jne again mov v, dl }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type bitwise_xor(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage movzx ecx, v xor edx, edx movzx eax, byte ptr [edi] align 16 again: mov dl, al xor dl, cl lock cmpxchg byte ptr [edi], dl jne again mov v, dl }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type fetch_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type old_val; __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax not dl lock cmpxchg byte ptr [ecx], dl jne again mov old_val, al }; base_type::fence_after(order); return old_val; } static BOOST_FORCEINLINE storage_type bitwise_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type new_val; __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax not dl lock cmpxchg byte ptr [ecx], dl jne again mov new_val, dl }; base_type::fence_after(order); return new_val; } static BOOST_FORCEINLINE bool complement_and_test(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax not dl lock cmpxchg byte ptr [ecx], dl jne again test dl, dl setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE void opaque_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov ecx, storage movzx eax, byte ptr [ecx] align 16 again: mov edx, eax not dl lock cmpxchg byte ptr [ecx], dl jne again }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_add(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock add byte ptr [edx], al }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_sub(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock sub byte ptr [edx], al }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage lock neg byte ptr [edx] }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_and(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock and byte ptr [edx], al }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_or(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock or byte ptr [edx], al }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_xor(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock xor byte ptr [edx], al }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage lock not byte ptr [edx] }; base_type::fence_after(order); } static BOOST_FORCEINLINE bool add_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock add byte ptr [edx], al setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool sub_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock sub byte ptr [edx], al setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool and_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock and byte ptr [edx], al setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool or_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock or byte ptr [edx], al setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool xor_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock xor byte ptr [edx], al setnz result }; base_type::fence_after(order); return result; } }; template< typename Base, bool Signed > struct extra_operations< Base, 2u, Signed, true > : public extra_operations_generic< Base, 2u, Signed > { using base_type = extra_operations_generic< Base, 2u, Signed >; using storage_type = typename base_type::storage_type; static BOOST_FORCEINLINE storage_type fetch_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type old_val; __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax neg dx lock cmpxchg word ptr [ecx], dx jne again mov old_val, ax }; base_type::fence_after(order); return old_val; } static BOOST_FORCEINLINE storage_type negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type new_val; __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax neg dx lock cmpxchg word ptr [ecx], dx jne again mov new_val, dx }; base_type::fence_after(order); return new_val; } static BOOST_FORCEINLINE bool negate_and_test(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax neg dx lock cmpxchg word ptr [ecx], dx jne again test dx, dx setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE void opaque_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax neg dx lock cmpxchg word ptr [ecx], dx jne again }; base_type::fence_after(order); } static BOOST_FORCEINLINE storage_type bitwise_and(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage movzx ecx, v xor edx, edx movzx eax, word ptr [edi] align 16 again: mov dx, ax and dx, cx lock cmpxchg word ptr [edi], dx jne again mov v, dx }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type bitwise_or(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage movzx ecx, v xor edx, edx movzx eax, word ptr [edi] align 16 again: mov dx, ax or dx, cx lock cmpxchg word ptr [edi], dx jne again mov v, dx }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type bitwise_xor(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage movzx ecx, v xor edx, edx movzx eax, word ptr [edi] align 16 again: mov dx, ax xor dx, cx lock cmpxchg word ptr [edi], dx jne again mov v, dx }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type fetch_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type old_val; __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax not dx lock cmpxchg word ptr [ecx], dx jne again mov old_val, ax }; base_type::fence_after(order); return old_val; } static BOOST_FORCEINLINE storage_type bitwise_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type new_val; __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax not dx lock cmpxchg word ptr [ecx], dx jne again mov new_val, dx }; base_type::fence_after(order); return new_val; } static BOOST_FORCEINLINE bool complement_and_test(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax not dx lock cmpxchg word ptr [ecx], dx jne again test dx, dx setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE void opaque_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov ecx, storage movzx eax, word ptr [ecx] align 16 again: mov edx, eax not dx lock cmpxchg word ptr [ecx], dx jne again }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_add(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock add word ptr [edx], ax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_sub(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock sub word ptr [edx], ax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage lock neg word ptr [edx] }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_and(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock and word ptr [edx], ax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_or(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock or word ptr [edx], ax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_xor(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage movzx eax, v lock xor word ptr [edx], ax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage lock not word ptr [edx] }; base_type::fence_after(order); } static BOOST_FORCEINLINE bool add_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock add word ptr [edx], ax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool sub_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock sub word ptr [edx], ax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool and_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock and word ptr [edx], ax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool or_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock or word ptr [edx], ax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool xor_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage movzx eax, v lock xor word ptr [edx], ax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool bit_test_and_set(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, bit_number lock bts word ptr [edx], ax setc result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool bit_test_and_reset(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, bit_number lock btr word ptr [edx], ax setc result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool bit_test_and_complement(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, bit_number lock btc word ptr [edx], ax setc result }; base_type::fence_after(order); return result; } }; #endif // defined(_M_IX86) #if defined(_M_IX86) || (defined(BOOST_ATOMIC_INTERLOCKED_BTS) && defined(BOOST_ATOMIC_INTERLOCKED_BTR)) template< typename Base, bool Signed > struct extra_operations< Base, 4u, Signed, true > : public extra_operations_generic< Base, 4u, Signed > { using base_type = extra_operations_generic< Base, 4u, Signed >; using storage_type = typename base_type::storage_type; #if defined(_M_IX86) static BOOST_FORCEINLINE storage_type fetch_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type old_val; __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax neg edx lock cmpxchg dword ptr [ecx], edx jne again mov old_val, eax }; base_type::fence_after(order); return old_val; } static BOOST_FORCEINLINE storage_type negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type new_val; __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax neg edx lock cmpxchg dword ptr [ecx], edx jne again mov new_val, edx }; base_type::fence_after(order); return new_val; } static BOOST_FORCEINLINE bool negate_and_test(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax neg edx lock cmpxchg dword ptr [ecx], edx jne again test edx, edx setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE void opaque_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax neg edx lock cmpxchg dword ptr [ecx], edx jne again }; base_type::fence_after(order); } static BOOST_FORCEINLINE storage_type bitwise_and(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage mov ecx, v xor edx, edx mov eax, dword ptr [edi] align 16 again: mov edx, eax and edx, ecx lock cmpxchg dword ptr [edi], edx jne again mov v, edx }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type bitwise_or(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage mov ecx, v xor edx, edx mov eax, dword ptr [edi] align 16 again: mov edx, eax or edx, ecx lock cmpxchg dword ptr [edi], edx jne again mov v, edx }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type bitwise_xor(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edi, storage mov ecx, v xor edx, edx mov eax, dword ptr [edi] align 16 again: mov edx, eax xor edx, ecx lock cmpxchg dword ptr [edi], edx jne again mov v, edx }; base_type::fence_after(order); return v; } static BOOST_FORCEINLINE storage_type fetch_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type old_val; __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax not edx lock cmpxchg dword ptr [ecx], edx jne again mov old_val, eax }; base_type::fence_after(order); return old_val; } static BOOST_FORCEINLINE storage_type bitwise_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); storage_type new_val; __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax not edx lock cmpxchg dword ptr [ecx], edx jne again mov new_val, edx }; base_type::fence_after(order); return new_val; } static BOOST_FORCEINLINE bool complement_and_test(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax not edx lock cmpxchg dword ptr [ecx], edx jne again test edx, edx setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE void opaque_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov ecx, storage mov eax, dword ptr [ecx] align 16 again: mov edx, eax not edx lock cmpxchg dword ptr [ecx], edx jne again }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_add(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage mov eax, v lock add dword ptr [edx], eax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_sub(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage mov eax, v lock sub dword ptr [edx], eax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_negate(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage lock neg dword ptr [edx] }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_and(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage mov eax, v lock and dword ptr [edx], eax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_or(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage mov eax, v lock or dword ptr [edx], eax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_xor(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage mov eax, v lock xor dword ptr [edx], eax }; base_type::fence_after(order); } static BOOST_FORCEINLINE void opaque_complement(storage_type volatile& storage, memory_order order) noexcept { base_type::fence_before(order); __asm { mov edx, storage lock not dword ptr [edx] }; base_type::fence_after(order); } static BOOST_FORCEINLINE bool add_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, v lock add dword ptr [edx], eax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool sub_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, v lock sub dword ptr [edx], eax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool and_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, v lock and dword ptr [edx], eax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool or_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, v lock or dword ptr [edx], eax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool xor_and_test(storage_type volatile& storage, storage_type v, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, v lock xor dword ptr [edx], eax setnz result }; base_type::fence_after(order); return result; } static BOOST_FORCEINLINE bool bit_test_and_complement(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, bit_number lock btc dword ptr [edx], eax setc result }; base_type::fence_after(order); return result; } #endif // defined(_M_IX86) #if defined(BOOST_ATOMIC_INTERLOCKED_BTS) static BOOST_FORCEINLINE bool bit_test_and_set(storage_type volatile& storage, unsigned int bit_number, memory_order) noexcept { return !!BOOST_ATOMIC_INTERLOCKED_BTS(&storage, bit_number); } #elif defined(_M_IX86) static BOOST_FORCEINLINE bool bit_test_and_set(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, bit_number lock bts dword ptr [edx], eax setc result }; base_type::fence_after(order); return result; } #endif #if defined(BOOST_ATOMIC_INTERLOCKED_BTR) static BOOST_FORCEINLINE bool bit_test_and_reset(storage_type volatile& storage, unsigned int bit_number, memory_order) noexcept { return !!BOOST_ATOMIC_INTERLOCKED_BTR(&storage, bit_number); } #elif defined(_M_IX86) static BOOST_FORCEINLINE bool bit_test_and_reset(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { base_type::fence_before(order); bool result; __asm { mov edx, storage mov eax, bit_number lock btr dword ptr [edx], eax setc result }; base_type::fence_after(order); return result; } #endif }; #endif // defined(_M_IX86) || (defined(BOOST_ATOMIC_INTERLOCKED_BTS) && defined(BOOST_ATOMIC_INTERLOCKED_BTR)) #if defined(BOOST_ATOMIC_INTERLOCKED_BTS64) && defined(BOOST_ATOMIC_INTERLOCKED_BTR64) template< typename Base, bool Signed > struct extra_operations< Base, 8u, Signed, true > : public extra_operations_generic< Base, 8u, Signed > { using base_type = extra_operations_generic< Base, 8u, Signed >; using storage_type = typename base_type::storage_type; static BOOST_FORCEINLINE bool bit_test_and_set(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { return !!BOOST_ATOMIC_INTERLOCKED_BTS64(&storage, bit_number); } static BOOST_FORCEINLINE bool bit_test_and_reset(storage_type volatile& storage, unsigned int bit_number, memory_order order) noexcept { return !!BOOST_ATOMIC_INTERLOCKED_BTR64(&storage, bit_number); } }; #endif // defined(BOOST_ATOMIC_INTERLOCKED_BTS64) && defined(BOOST_ATOMIC_INTERLOCKED_BTR64) } // namespace detail } // namespace atomics } // namespace boost #include #endif // BOOST_ATOMIC_DETAIL_EXTRA_OPS_MSVC_X86_HPP_INCLUDED_