< prev index next >
src/java.desktop/share/native/common/awt/medialib/mlib_sys.c
Print this page
rev 59106 : imported patch client
@@ -46,13 +46,11 @@
#pragma weak mlib_realloc = __mlib_realloc
#pragma weak mlib_free = __mlib_free
#pragma weak mlib_memset = __mlib_memset
#pragma weak mlib_memcpy = __mlib_memcpy
-#ifdef MLIB_NO_LIBSUNMATH
#pragma weak mlib_sincosf = __mlib_sincosf
-#endif /* MLIB_NO_LIBSUNMATH */
#elif defined ( __GNUC__ ) /* defined ( __SUNPRO_C ) */
__typeof__ ( __mlib_memmove) mlib_memmove
__attribute__ ((weak,alias("__mlib_memmove")));
@@ -65,17 +63,14 @@
__typeof__ ( __mlib_memset) mlib_memset
__attribute__ ((weak,alias("__mlib_memset")));
__typeof__ ( __mlib_memcpy) mlib_memcpy
__attribute__ ((weak,alias("__mlib_memcpy")));
-#ifdef MLIB_NO_LIBSUNMATH
-
void __mlib_sincosf (float x, float *s, float *c);
__typeof__ ( __mlib_sincosf) mlib_sincosf
__attribute__ ((weak,alias("__mlib_sincosf")));
-#endif /* MLIB_NO_LIBSUNMATH */
#else /* defined ( __SUNPRO_C ) */
#error "unknown platform"
@@ -125,14 +120,10 @@
void *__mlib_memmove(void *s1, void *s2, mlib_u32 n)
{
return memmove(s1, s2, n);
}
-#ifdef MLIB_NO_LIBSUNMATH
-
void __mlib_sincosf (mlib_f32 x, mlib_f32 *s, mlib_f32 *c)
{
*s = (mlib_f32)sin(x);
*c = (mlib_f32)cos(x);
}
-
-#endif /* MLIB_NO_LIBSUNMATH */
< prev index next >