File tree 2 files changed +6
-1
lines changed
src/int/specialized_div_rem
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,13 @@ macro_rules! impl_binary_long {
13
13
$n: tt, // the number of bits in a $iX or $uX
14
14
$uX: ident, // unsigned integer type for the inputs and outputs of `$fn`
15
15
$iX: ident // signed integer type with same bitwidth as `$uX`
16
+ $( , $fun_attr: meta) * // attributes for the function
16
17
) => {
17
18
/// Computes the quotient and remainder of `duo` divided by `div` and returns them as a
18
19
/// tuple.
20
+ $(
21
+ #[ $fun_attr]
22
+ ) *
19
23
pub fn $fn( duo: $uX, div: $uX) -> ( $uX, $uX) {
20
24
let mut duo = duo;
21
25
// handle edge cases before calling `$normalization_shift`
Original file line number Diff line number Diff line change @@ -306,5 +306,6 @@ impl_binary_long!(
306
306
u32_normalization_shift,
307
307
32 ,
308
308
u32 ,
309
- i32
309
+ i32 ,
310
+ allow( dead_code)
310
311
) ;
You can’t perform that action at this time.
0 commit comments