mirror of
https://github.com/corda/corda.git
synced 2025-05-02 08:43:15 +00:00
implement sun.misc.Unsafe.getFloat
This commit is contained in:
parent
f617c5c9ef
commit
d5fb7f97b9
@ -2623,6 +2623,15 @@ Avian_sun_misc_Unsafe_getInt__J
|
|||||||
return *reinterpret_cast<int32_t*>(p);
|
return *reinterpret_cast<int32_t*>(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" JNIEXPORT int64_t JNICALL
|
||||||
|
Avian_sun_misc_Unsafe_getFloat__J
|
||||||
|
(Thread*, object, uintptr_t* arguments)
|
||||||
|
{
|
||||||
|
int64_t p; memcpy(&p, arguments + 1, 8);
|
||||||
|
|
||||||
|
return *reinterpret_cast<int32_t*>(p);
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT int64_t JNICALL
|
extern "C" JNIEXPORT int64_t JNICALL
|
||||||
Avian_sun_misc_Unsafe_pageSize
|
Avian_sun_misc_Unsafe_pageSize
|
||||||
(Thread*, object, uintptr_t*)
|
(Thread*, object, uintptr_t*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user