There was an error while loading. Please reload this page.
1 parent f09ea13 commit 5c2d615Copy full SHA for 5c2d615
1 file changed
gix-features/tests/hash.rs
@@ -6,7 +6,13 @@ fn size_of_sha1() {
6
assert_eq!(std::mem::size_of::<Sha1>(), 96)
7
}
8
9
-#[cfg(feature = "fast-sha1")]
+#[cfg(all(feature = "fast-sha1", target_arch = "x86"))]
10
+#[test]
11
+fn size_of_sha1() {
12
+ assert_eq!(std::mem::size_of::<Sha1>(), 96)
13
+}
14
+
15
+#[cfg(all(feature = "fast-sha1", not(target_arch = "x86")))]
16
#[test]
17
fn size_of_sha1() {
18
assert_eq!(std::mem::size_of::<Sha1>(), 104)
0 commit comments