From ef97a5d8daf22c9982d4b8b562c9fc1c0c453c03 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Thu, 20 Dec 2007 16:22:40 -0700 Subject: [PATCH 1/2] Fix for assembler symbols for Mac build --- src/compile.S | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/compile.S b/src/compile.S index 711908298e..ff136ed768 100644 --- a/src/compile.S +++ b/src/compile.S @@ -57,9 +57,14 @@ vmJump: jmp *%rdi #elif defined __i386__ - + +# if defined __APPLE__ || defined __MINGW32__ +.globl _vmInvoke +_vmInvoke: +# else .globl vmInvoke vmInvoke: +# endif pushl %ebp movl %esp,%ebp @@ -120,8 +125,13 @@ exit: popl %ebp ret +# if defined __APPLE__ || defined __MINGW32__ +.globl _vmJump +_vmJump: +# else .globl vmJump vmJump: +# endif movl 4(%esp),%eax movl 8(%esp),%ebp movl 16(%esp),%ebx From 8c568456163b810fd54a82422b30f96c7ab5c2a9 Mon Sep 17 00:00:00 2001 From: James Sanders Date: Fri, 21 Dec 2007 14:10:40 -0700 Subject: [PATCH 2/2] Added support for Math.cos --- classpath/java-lang.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classpath/java-lang.cpp b/classpath/java-lang.cpp index 508d0fbbf9..74a3c9d838 100644 --- a/classpath/java-lang.cpp +++ b/classpath/java-lang.cpp @@ -423,6 +423,12 @@ Java_java_lang_Math_sin(JNIEnv*, jclass, jdouble 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 Java_java_lang_Math_sqrt(JNIEnv*, jclass, jdouble val) {