hotspot/test/compiler/floatingpoint/libTest15FloatJNIArgs.c
changeset 41744 851a954c677d
parent 41643 df0e03e3ca0e
parent 41743 39d7567a68d4
child 41745 3267359f9479
child 42033 401c7013b053
equal deleted inserted replaced
41643:df0e03e3ca0e 41744:851a954c677d
     1 /*
       
     2  * Copyright (c) 2015. All rights reserved.
       
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4  *
       
     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 #include <jni.h>
       
    25 
       
    26 #ifdef __cplusplus
       
    27 extern "C" {
       
    28 #endif
       
    29 
       
    30 JNIEXPORT jfloat JNICALL Java_compiler_floatingpoint_Test15FloatJNIArgs_add15floats
       
    31   (JNIEnv *env, jclass cls,
       
    32    jfloat  f1, jfloat  f2, jfloat  f3, jfloat  f4,
       
    33    jfloat  f5, jfloat  f6, jfloat  f7, jfloat  f8,
       
    34    jfloat  f9, jfloat f10, jfloat f11, jfloat f12,
       
    35    jfloat f13, jfloat f14, jfloat f15) {
       
    36   return f1 + f2 + f3 + f4 + f5 + f6 + f7 + f8 + f9 + f10 + f11 + f12 + f13 + f14 + f15;
       
    37 }
       
    38 
       
    39 #ifdef __cplusplus
       
    40 }
       
    41 #endif