< prev index next >

src/java.desktop/share/native/common/awt/medialib/mlib_sys.c

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 37,60 **** #include "mlib_SysMath.h" /***************************************************************/ #if ! defined ( __MEDIALIB_OLD_NAMES ) ! #if defined ( __SUNPRO_C ) ! ! #pragma weak mlib_memmove = __mlib_memmove ! #pragma weak mlib_malloc = __mlib_malloc ! #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"))); __typeof__ ( __mlib_malloc) mlib_malloc __attribute__ ((weak,alias("__mlib_malloc"))); --- 37,47 ---- #include "mlib_SysMath.h" /***************************************************************/ #if ! defined ( __MEDIALIB_OLD_NAMES ) ! #if defined ( __GNUC__ ) __typeof__ ( __mlib_memmove) mlib_memmove __attribute__ ((weak,alias("__mlib_memmove"))); __typeof__ ( __mlib_malloc) mlib_malloc __attribute__ ((weak,alias("__mlib_malloc")));
*** 65,87 **** __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" ! #endif /* defined ( __SUNPRO_C ) */ #endif /* ! defined ( __MEDIALIB_OLD_NAMES ) */ /***************************************************************/ void *__mlib_malloc(mlib_u32 size) --- 52,71 ---- __typeof__ ( __mlib_memset) mlib_memset __attribute__ ((weak,alias("__mlib_memset"))); __typeof__ ( __mlib_memcpy) mlib_memcpy __attribute__ ((weak,alias("__mlib_memcpy"))); void __mlib_sincosf (float x, float *s, float *c); __typeof__ ( __mlib_sincosf) mlib_sincosf __attribute__ ((weak,alias("__mlib_sincosf"))); ! #else /* defined ( __GNUC__ ) */ #error "unknown platform" ! #endif /* defined ( __GNUC__ ) */ #endif /* ! defined ( __MEDIALIB_OLD_NAMES ) */ /***************************************************************/ void *__mlib_malloc(mlib_u32 size)
*** 125,138 **** 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 */ --- 109,118 ----
< prev index next >