(dv: DataValue, ty: types::Type)
| 895 | } |
| 896 | |
| 897 | fn simd_sum(dv: DataValue, ty: types::Type) -> i128 { |
| 898 | let itr = dv.iter_lanes(ty).unwrap(); |
| 899 | |
| 900 | itr.map(|e| { |
| 901 | if let Some(v) = e.into_int_signed().ok() { |
| 902 | v |
| 903 | } else { |
| 904 | 0 |
| 905 | } |
| 906 | }) |
| 907 | .sum() |
| 908 | } |
| 909 | } |
nothing calls this directly
no test coverage detected