Skip to content

Commit b98e845

Browse files
authored
polyval: remove sse4.1 requirement (#143)
1 parent ad90a89 commit b98e845

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

polyval/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Unreleased
9+
### Changed
10+
- Remove `sse4.1` from CPU feature requirements for PCLMUL backend ([#143])
11+
12+
[#143]: https://github.com/RustCrypto/universal-hashes/pull/143
13+
14+
815
## 0.5.3 (2021-08-27)
916
### Changed
1017
- Bump `cpufeatures` dependency to v0.2 ([#136], [#138])

polyval/src/backend/autodetect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use super::clmul as intrinsics;
1515
cpufeatures::new!(mul_intrinsics, "aes"); // `aes` implies PMULL
1616

1717
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
18-
cpufeatures::new!(mul_intrinsics, "pclmulqdq", "sse4.1");
18+
cpufeatures::new!(mul_intrinsics, "pclmulqdq");
1919

2020
/// **POLYVAL**: GHASH-like universal hash over GF(2^128).
2121
pub struct Polyval {

polyval/src/backend/clmul.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ impl UniversalHash for Polyval {
5858
impl Polyval {
5959
#[inline]
6060
#[target_feature(enable = "pclmulqdq")]
61-
#[target_feature(enable = "sse4.1")]
6261
unsafe fn mul(&mut self, x: &Block) {
6362
let h = self.h;
6463

0 commit comments

Comments
 (0)