< prev index next >

test/compiler/floatingpoint/libTest15FloatJNIArgs.c

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


  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_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


  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
< prev index next >