Closed
Description
From riscv32.rs:
intrinsics! {
// Implementation from gcc
// https://raw.githubusercontent.com/gcc-mirror/gcc/master/libgcc/config/epiphany/mulsi3.c
pub extern "C" fn __mulsi3(a: u32, b: u32) -> u32 {
let (mut a, mut b) = (a, b);
let mut r = 0;
while a > 0 {
if a & 1 > 0 {
r += b;
}
a >>= 1;
b <<= 1;
}
r
}
}
That link contains a GPL-3 license.
It's not ok to read GPL code and then reimplement it for Rust, let alone copy it verbatim.
Metadata
Metadata
Assignees
Labels
No labels