Never use C version of clz builtins
This commit is contained in:
parent
a5c7a17d55
commit
cc64c7978e
2 changed files with 0 additions and 11 deletions
|
|
@ -164,8 +164,6 @@ fn configure_check_cfg() {
|
|||
"__bswapsi2",
|
||||
"__bswapdi2",
|
||||
"__bswapti2",
|
||||
"__clzsi2",
|
||||
"__clzdi2",
|
||||
"__divdi3",
|
||||
"__divsi3",
|
||||
"__divmoddi4",
|
||||
|
|
@ -346,8 +344,6 @@ mod c {
|
|||
("__absvsi2", "absvsi2.c"),
|
||||
("__addvdi3", "addvdi3.c"),
|
||||
("__addvsi3", "addvsi3.c"),
|
||||
("__clzdi2", "clzdi2.c"),
|
||||
("__clzsi2", "clzsi2.c"),
|
||||
("__cmpdi2", "cmpdi2.c"),
|
||||
("__ctzdi2", "ctzdi2.c"),
|
||||
("__ctzsi2", "ctzsi2.c"),
|
||||
|
|
@ -435,8 +431,6 @@ mod c {
|
|||
("__aeabi_frsub", "arm/aeabi_frsub.c"),
|
||||
("__bswapdi2", "arm/bswapdi2.S"),
|
||||
("__bswapsi2", "arm/bswapsi2.S"),
|
||||
("__clzdi2", "arm/clzdi2.S"),
|
||||
("__clzsi2", "arm/clzsi2.S"),
|
||||
("__divmodsi4", "arm/divmodsi4.S"),
|
||||
("__divsi3", "arm/divsi3.S"),
|
||||
("__modsi3", "arm/modsi3.S"),
|
||||
|
|
@ -572,9 +566,6 @@ mod c {
|
|||
}
|
||||
}
|
||||
sources.remove(&to_remove);
|
||||
|
||||
// But use some generic implementations where possible
|
||||
sources.extend(&[("__clzdi2", "clzdi2.c"), ("__clzsi2", "clzsi2.c")])
|
||||
}
|
||||
|
||||
if llvm_target[0] == "thumbv7m" || llvm_target[0] == "thumbv7em" {
|
||||
|
|
|
|||
|
|
@ -135,7 +135,6 @@ pub(crate) fn leading_zeros_riscv<T: Int + CastInto<usize>>(x: T) -> usize {
|
|||
}
|
||||
|
||||
intrinsics! {
|
||||
#[maybe_use_optimized_c_shim]
|
||||
/// Returns the number of leading binary zeros in `x`
|
||||
pub extern "C" fn __clzsi2(x: u32) -> usize {
|
||||
if cfg!(any(target_arch = "riscv32", target_arch = "riscv64")) {
|
||||
|
|
@ -145,7 +144,6 @@ intrinsics! {
|
|||
}
|
||||
}
|
||||
|
||||
#[maybe_use_optimized_c_shim]
|
||||
/// Returns the number of leading binary zeros in `x`
|
||||
pub extern "C" fn __clzdi2(x: u64) -> usize {
|
||||
if cfg!(any(target_arch = "riscv32", target_arch = "riscv64")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue