< prev index next >

test/jdk/java/foreign/libIntrinsics.c

Print this page

 5  *  This code is free software; you can redistribute it and/or modify it
 6  *  under the terms of the GNU General Public License version 2 only, as
 7  *  published by the Free Software Foundation.
 8  *
 9  *  This code is distributed in the hope that it will be useful, but WITHOUT
10  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  *  version 2 for more details (a copy is included in the LICENSE file that
13  *  accompanied this code).
14  *
15  *  You should have received a copy of the GNU General Public License version
16  *  2 along with this work; if not, write to the Free Software Foundation,
17  *  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  *   Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  *  or visit www.oracle.com if you need additional information or have any
21  *  questions.
22  *
23  */
24 


25 #ifdef _WIN64
26 #define EXPORT __declspec(dllexport)
27 #else
28 #define EXPORT
29 #endif
30 
31 EXPORT void empty() {
32 }
33 




34 EXPORT char identity_char(char x) {
35     return x;
36 }
37 
38 EXPORT short identity_short(short x) {
39     return x;
40 }
41 
42 EXPORT int identity_int(int x) {
43     return x;
44 }
45 
46 EXPORT long long identity_long(long long x) {
47     return x;
48 }
49 
50 EXPORT float identity_float(float x) {
51     return x;
52 }
53 

 5  *  This code is free software; you can redistribute it and/or modify it
 6  *  under the terms of the GNU General Public License version 2 only, as
 7  *  published by the Free Software Foundation.
 8  *
 9  *  This code is distributed in the hope that it will be useful, but WITHOUT
10  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  *  version 2 for more details (a copy is included in the LICENSE file that
13  *  accompanied this code).
14  *
15  *  You should have received a copy of the GNU General Public License version
16  *  2 along with this work; if not, write to the Free Software Foundation,
17  *  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  *   Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  *  or visit www.oracle.com if you need additional information or have any
21  *  questions.
22  *
23  */
24 
25 #include <stdbool.h>
26 
27 #ifdef _WIN64
28 #define EXPORT __declspec(dllexport)
29 #else
30 #define EXPORT
31 #endif
32 
33 EXPORT void empty() {
34 }
35 
36 EXPORT bool identity_bool(bool x) {
37     return x;
38 }
39 
40 EXPORT char identity_char(char x) {
41     return x;
42 }
43 
44 EXPORT short identity_short(short x) {
45     return x;
46 }
47 
48 EXPORT int identity_int(int x) {
49     return x;
50 }
51 
52 EXPORT long long identity_long(long long x) {
53     return x;
54 }
55 
56 EXPORT float identity_float(float x) {
57     return x;
58 }
59 
< prev index next >