@@ -208,8 +208,7 @@ struct left_shift_operator<T NBL_PARTIAL_REQ_BOT(concepts::EmulatedIntegralScala
208208 const uint32_t shift = bigShift ? bits - ComponentBitWidth : ComponentBitWidth - bits;
209209 const type_t shifted = type_t::create (bigShift ? vector <uint32_t, 2 >(0 , operand.__getLSB () << shift)
210210 : vector <uint32_t, 2 >(operand.__getLSB () << bits, (operand.__getMSB () << bits) | (operand.__getLSB () >> shift)));
211- ternary_operator<type_t> ternary;
212- return ternary (bool (bits), shifted, operand);
211+ return select<bool , type_t>(bool (bits), shifted, operand);
213212 }
214213
215214 // If `_bits > 63` or `_bits < 0` the result is undefined
@@ -235,8 +234,8 @@ struct arithmetic_right_shift_operator<emulated_uint64_t>
235234 const uint32_t shift = bigShift ? bits - ComponentBitWidth : ComponentBitWidth - bits;
236235 const type_t shifted = type_t::create (bigShift ? vector <uint32_t, 2 >(operand.__getMSB () >> shift, 0 )
237236 : vector <uint32_t, 2 >((operand.__getMSB () << shift) | (operand.__getLSB () >> bits), operand.__getMSB () >> bits));
238- ternary_operator<type_t> ternary;
239- return ternary (bool (bits), shifted, operand);
237+
238+ return select< bool , type_t> (bool (bits), shifted, operand);
240239 }
241240
242241 // If `_bits > 63` the result is undefined
@@ -262,8 +261,7 @@ struct arithmetic_right_shift_operator<emulated_int64_t>
262261 const uint32_t shift = bigShift ? bits - ComponentBitWidth : ComponentBitWidth - bits;
263262 const type_t shifted = type_t::create (bigShift ? vector <uint32_t, 2 >(uint32_t (int32_t (operand.__getMSB ()) >> shift), int32_t (operand.__getMSB ()) < 0 ? ~uint32_t (0 ) : uint32_t (0 ))
264263 : vector <uint32_t, 2 >((operand.__getMSB () << shift) | (operand.__getLSB () >> bits), uint32_t (int32_t (operand.__getMSB ()) >> bits)));
265- ternary_operator<type_t> ternary;
266- return ternary (bool (bits), shifted, operand);
264+ return select<bool , type_t>(bool (bits), shifted, operand);
267265 }
268266
269267 // If `_bits > 63` or `_bits < 0` the result is undefined
0 commit comments