mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +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);
|
||||
}
|
||||
|
||||
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
|
||||
Avian_sun_misc_Unsafe_pageSize
|
||||
(Thread*, object, uintptr_t*)
|
||||
|
Loading…
Reference in New Issue
Block a user