@@ -93,27 +93,27 @@ mod u64 {
93
93
94
94
#[ test]
95
95
fn cmovz_works ( ) {
96
- let mut n = 0x11111111_11111111u64 ;
96
+ let mut n = 0x1111_1111_1111_1111_u64 ;
97
97
98
98
for cond in 1 ..0xFF {
99
- n. cmovz ( 0x22222222_22222222 , cond) ;
100
- assert_eq ! ( n, 0x11111111_11111111 ) ;
99
+ n. cmovz ( 0x2222_2222_2222_2222 , cond) ;
100
+ assert_eq ! ( n, 0x1111_1111_1111_1111 ) ;
101
101
}
102
102
103
- n. cmovz ( 0x22222222_22222222 , 0 ) ;
104
- assert_eq ! ( n, 0x22222222_22222222 ) ;
103
+ n. cmovz ( 0x2222_2222_2222_2222 , 0 ) ;
104
+ assert_eq ! ( n, 0x2222_2222_2222_2222 ) ;
105
105
}
106
106
107
107
#[ test]
108
108
fn cmovnz_works ( ) {
109
- let mut n = 0x11111111_11111111u64 ;
110
- n. cmovnz ( 0x22222222_22222222 , 0 ) ;
111
- assert_eq ! ( n, 0x11111111_11111111 ) ;
109
+ let mut n = 0x1111_1111_1111_1111_u64 ;
110
+ n. cmovnz ( 0x2222_2222_2222_2222 , 0 ) ;
111
+ assert_eq ! ( n, 0x1111_1111_1111_1111 ) ;
112
112
113
113
for cond in 1 ..0xFF {
114
- let mut n = 0x11111111_11111111u64 ;
115
- n. cmovnz ( 0x22222222_22222222 , cond) ;
116
- assert_eq ! ( n, 0x22222222_22222222 ) ;
114
+ let mut n = 0x1111_1111_1111_1111_u64 ;
115
+ n. cmovnz ( 0x2222_2222_2222_2222 , cond) ;
116
+ assert_eq ! ( n, 0x2222_2222_2222_2222 ) ;
117
117
}
118
118
}
119
119
}
@@ -123,27 +123,27 @@ mod u128 {
123
123
124
124
#[ test]
125
125
fn cmovz_works ( ) {
126
- let mut n = 0x11111111_11111111_22222222_22222222u128 ;
126
+ let mut n = 0x1111_1111_1111_1111_2222_2222_2222_2222_u128 ;
127
127
128
128
for cond in 1 ..0xFF {
129
- n. cmovz ( 0x22222222_22222222_33333333_33333333 , cond) ;
130
- assert_eq ! ( n, 0x11111111_11111111_22222222_22222222 ) ;
129
+ n. cmovz ( 0x2222_2222_2222_2222_3333_3333_3333_3333 , cond) ;
130
+ assert_eq ! ( n, 0x1111_1111_1111_1111_2222_2222_2222_2222 ) ;
131
131
}
132
132
133
- n. cmovz ( 0x22222222_22222222_33333333_33333333 , 0 ) ;
134
- assert_eq ! ( n, 0x22222222_22222222_33333333_33333333 ) ;
133
+ n. cmovz ( 0x2222_2222_2222_2222_3333_3333_3333_3333 , 0 ) ;
134
+ assert_eq ! ( n, 0x2222_2222_2222_2222_3333_3333_3333_3333 ) ;
135
135
}
136
136
137
137
#[ test]
138
138
fn cmovnz_works ( ) {
139
- let mut n = 0x11111111_11111111_22222222_22222222u128 ;
140
- n. cmovnz ( 0x22222222_22222222_33333333_33333333 , 0 ) ;
141
- assert_eq ! ( n, 0x11111111_11111111_22222222_22222222 ) ;
139
+ let mut n = 0x1111_1111_1111_1111_2222_2222_2222_2222_u128 ;
140
+ n. cmovnz ( 0x2222_2222_2222_2222_3333_3333_3333_3333 , 0 ) ;
141
+ assert_eq ! ( n, 0x1111_1111_1111_1111_2222_2222_2222_2222 ) ;
142
142
143
143
for cond in 1 ..0xFF {
144
- let mut n = 0x11111111_11111111u128 ;
145
- n. cmovnz ( 0x22222222_22222222_33333333_33333333 , cond) ;
146
- assert_eq ! ( n, 0x22222222_22222222_33333333_33333333 ) ;
144
+ let mut n = 0x1111_1111_1111_1111_u128 ;
145
+ n. cmovnz ( 0x2222_2222_2222_2222_3333_3333_3333_3333 , cond) ;
146
+ assert_eq ! ( n, 0x2222_2222_2222_2222_3333_3333_3333_3333 ) ;
147
147
}
148
148
}
149
149
}
0 commit comments