mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Merge branch 'master' of dice:git/vm
This commit is contained in:
commit
f3e2795990
@ -423,6 +423,12 @@ Java_java_lang_Math_sin(JNIEnv*, jclass, jdouble val)
|
|||||||
return sin(val);
|
return sin(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" JNIEXPORT jdouble JNICALL
|
||||||
|
Java_java_lang_Math_cos(JNIEnv*, jclass, jdouble val)
|
||||||
|
{
|
||||||
|
return cos(val);
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT jdouble JNICALL
|
extern "C" JNIEXPORT jdouble JNICALL
|
||||||
Java_java_lang_Math_sqrt(JNIEnv*, jclass, jdouble val)
|
Java_java_lang_Math_sqrt(JNIEnv*, jclass, jdouble val)
|
||||||
{
|
{
|
||||||
|
@ -57,9 +57,14 @@ vmJump:
|
|||||||
jmp *%rdi
|
jmp *%rdi
|
||||||
|
|
||||||
#elif defined __i386__
|
#elif defined __i386__
|
||||||
|
|
||||||
|
# if defined __APPLE__ || defined __MINGW32__
|
||||||
|
.globl _vmInvoke
|
||||||
|
_vmInvoke:
|
||||||
|
# else
|
||||||
.globl vmInvoke
|
.globl vmInvoke
|
||||||
vmInvoke:
|
vmInvoke:
|
||||||
|
# endif
|
||||||
pushl %ebp
|
pushl %ebp
|
||||||
movl %esp,%ebp
|
movl %esp,%ebp
|
||||||
|
|
||||||
@ -120,8 +125,13 @@ exit:
|
|||||||
popl %ebp
|
popl %ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
# if defined __APPLE__ || defined __MINGW32__
|
||||||
|
.globl _vmJump
|
||||||
|
_vmJump:
|
||||||
|
# else
|
||||||
.globl vmJump
|
.globl vmJump
|
||||||
vmJump:
|
vmJump:
|
||||||
|
# endif
|
||||||
movl 4(%esp),%eax
|
movl 4(%esp),%eax
|
||||||
movl 8(%esp),%ebp
|
movl 8(%esp),%ebp
|
||||||
movl 16(%esp),%ebx
|
movl 16(%esp),%ebx
|
||||||
|
Loading…
Reference in New Issue
Block a user