mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
@@ -5,7 +5,7 @@ JavaScript, not just WebAssembly.
|
||||
- Performance: SHA3 (Keccak1600) now leverages ARM SHA3 instructions when
|
||||
available on ARM platforms.
|
||||
- Export missing crypto_ipcrypt_nd_keygen() helper function.
|
||||
- Fixed compilation with GCC on aarch64.
|
||||
- Fixed compilation with GCC on aarch64 and gcc 4.1
|
||||
- Libsodium can be directly used as a dependency in a Zig project.
|
||||
|
||||
* Version 1.0.21
|
||||
|
||||
@@ -308,7 +308,7 @@ pfx_set_bit(uint8_t ip16[16], const unsigned int bit_index, const uint8_t bit_va
|
||||
uint8_t mask = (uint8_t) -((bit_value & 1));
|
||||
|
||||
# if defined(__GNUC__) || defined(__clang__)
|
||||
__asm__ __volatile__("" : "+r"(mask)::);
|
||||
__asm__ __volatile__("" : "+r"(mask) :);
|
||||
# endif
|
||||
ip16[byte_index] = (ip16[byte_index] & ~bit_mask) | (bit_mask & mask);
|
||||
}
|
||||
|
||||
@@ -340,7 +340,7 @@ pfx_set_bit(uint8_t ip16[16], const unsigned int bit_index, const uint8_t bit_va
|
||||
uint8_t mask = (uint8_t) -((bit_value & 1));
|
||||
|
||||
# if defined(__GNUC__) || defined(__clang__)
|
||||
__asm__ __volatile__("" : "+r"(mask)::);
|
||||
__asm__ __volatile__("" : "+r"(mask) :);
|
||||
# endif
|
||||
ip16[byte_index] = (ip16[byte_index] & ~bit_mask) | (bit_mask & mask);
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ pfx_set_bit(uint8_t ip16[16], const unsigned int bit_index, const uint8_t bit_va
|
||||
uint8_t mask = (uint8_t) -((bit_value & 1));
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
__asm__ __volatile__("" : "+r"(mask)::);
|
||||
__asm__ __volatile__("" : "+r"(mask) :);
|
||||
#endif
|
||||
ip16[byte_index] = (ip16[byte_index] & ~bit_mask) | (bit_mask & mask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user