mirror of
https://github.com/italicsjenga/gba.git
synced 2025-01-11 19:41:30 +11:00
whoops
This commit is contained in:
parent
c3f62b1ab5
commit
1ff25ca2b7
|
@ -5,7 +5,6 @@
|
||||||
//! You shouldn't need to call anything in here yourself, it just has to be in
|
//! You shouldn't need to call anything in here yourself, it just has to be in
|
||||||
//! the translation unit and LLVM will find it.
|
//! the translation unit and LLVM will find it.
|
||||||
|
|
||||||
//TODO: make 64 bit too
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[cfg(any(target_pointer_width = "16", target_pointer_width = "32", target_pointer_width = "64"))]
|
#[cfg(any(target_pointer_width = "16", target_pointer_width = "32", target_pointer_width = "64"))]
|
||||||
pub extern "C" fn __clzsi2(mut x: usize) -> usize {
|
pub extern "C" fn __clzsi2(mut x: usize) -> usize {
|
||||||
|
@ -32,7 +31,7 @@ pub extern "C" fn __clzsi2(mut x: usize) -> usize {
|
||||||
x = y;
|
x = y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[cfg(target_pointer_width = "32")]
|
#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))]
|
||||||
{
|
{
|
||||||
y = x >> 16;
|
y = x >> 16;
|
||||||
if y != 0 {
|
if y != 0 {
|
||||||
|
|
Loading…
Reference in a new issue