Hello,all

Im new to this group.
Im tried to porting android 2.3 to android 4.0.but there are some errors in
libcore/luni/src/main/native/libcore_io_Memory.cpp

static inline void swapInts(jint* dstInts, const jint* srcInts, size_t
count) {
    for (size_t i = 0; i < count; ++i) {
        jint v = *srcInts++;
        *dstInts++ = bswap_32(v);
    }
}

There will be a SIGBUS error when change the *srcInts to jint.
I kown the reason is byte not be aligned,but i can't solve it yet.

Anyone help?Thanks.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to