@@ -21,6 +21,7 @@ mod real_chacha {
21
21
struct u32x4 ( pub u32 , pub u32 , pub u32 , pub u32 ) ;
22
22
impl :: core:: ops:: Add for u32x4 {
23
23
type Output = u32x4 ;
24
+ #[ inline]
24
25
fn add ( self , rhs : u32x4 ) -> u32x4 {
25
26
u32x4 ( self . 0 . wrapping_add ( rhs. 0 ) ,
26
27
self . 1 . wrapping_add ( rhs. 1 ) ,
@@ -30,6 +31,7 @@ mod real_chacha {
30
31
}
31
32
impl :: core:: ops:: Sub for u32x4 {
32
33
type Output = u32x4 ;
34
+ #[ inline]
33
35
fn sub ( self , rhs : u32x4 ) -> u32x4 {
34
36
u32x4 ( self . 0 . wrapping_sub ( rhs. 0 ) ,
35
37
self . 1 . wrapping_sub ( rhs. 1 ) ,
@@ -39,23 +41,27 @@ mod real_chacha {
39
41
}
40
42
impl :: core:: ops:: BitXor for u32x4 {
41
43
type Output = u32x4 ;
44
+ #[ inline]
42
45
fn bitxor ( self , rhs : u32x4 ) -> u32x4 {
43
46
u32x4 ( self . 0 ^ rhs. 0 , self . 1 ^ rhs. 1 , self . 2 ^ rhs. 2 , self . 3 ^ rhs. 3 )
44
47
}
45
48
}
46
49
impl :: core:: ops:: Shr < u8 > for u32x4 {
47
50
type Output = u32x4 ;
51
+ #[ inline]
48
52
fn shr ( self , shr : u8 ) -> u32x4 {
49
53
u32x4 ( self . 0 >> shr, self . 1 >> shr, self . 2 >> shr, self . 3 >> shr)
50
54
}
51
55
}
52
56
impl :: core:: ops:: Shl < u8 > for u32x4 {
53
57
type Output = u32x4 ;
58
+ #[ inline]
54
59
fn shl ( self , shl : u8 ) -> u32x4 {
55
60
u32x4 ( self . 0 << shl, self . 1 << shl, self . 2 << shl, self . 3 << shl)
56
61
}
57
62
}
58
63
impl u32x4 {
64
+ #[ inline]
59
65
fn from_bytes ( bytes : & [ u8 ] ) -> Self {
60
66
assert_eq ! ( bytes. len( ) , 4 * 4 ) ;
61
67
Self (
0 commit comments