< prev index next >

test/micro/org/openjdk/bench/jdk/incubator/foreign/libCallOverhead.c

Print this page
@@ -32,22 +32,30 @@
  EXPORT int identity(int x) {
    return x;
  }
  
  typedef struct {
-     long long x;
-     long long y;
+     int x;
+     int y;
  } Point;
  
  EXPORT Point identity_struct(Point p) {
      return p;
  }
  
+ EXPORT Point identity_struct_3(Point p1, Point p2, Point p3) {
+     return p1;
+ }
+ 
  EXPORT void* identity_memory_address(void* p) {
      return p;
  }
  
+ EXPORT void* identity_memory_address_3(void* p1, void* p2, void* p3) {
+     return p1;
+ }
+ 
  EXPORT void args1(long long a0) {}
  EXPORT void args2(long long a0, double a1) {}
  EXPORT void args3(long long a0, double a1, long long a2) {}
  EXPORT void args4(long long a0, double a1, long long a2, double a3) {}
  EXPORT void args5(long long a0, double a1, long long a2, double a3, long long a4) {}
< prev index next >