aboutsummaryrefslogtreecommitdiff
path: root/tests/nbody-java/java_lang_Math.h
blob: 2f2b32b6df747ce1e50341940fed222097a5dade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#ifndef __JAVA_LANG_MATH__
#define __JAVA_LANG_MATH__

#include "xmlvm.h"

// Preprocessor constants for interfaces:
#define XMLVM_ITABLE_SIZE_java_lang_Math 0
// Implemented interfaces:
// Super Class:
#include "java_lang_Object.h"

// Circular references:
#ifndef XMLVM_FORWARD_DECL_java_lang_Double
#define XMLVM_FORWARD_DECL_java_lang_Double
XMLVM_FORWARD_DECL(java_lang_Double)
#endif
#ifndef XMLVM_FORWARD_DECL_java_lang_Float
#define XMLVM_FORWARD_DECL_java_lang_Float
XMLVM_FORWARD_DECL(java_lang_Float)
#endif
#ifndef XMLVM_FORWARD_DECL_java_lang_Integer
#define XMLVM_FORWARD_DECL_java_lang_Integer
XMLVM_FORWARD_DECL(java_lang_Integer)
#endif
#ifndef XMLVM_FORWARD_DECL_java_lang_Long
#define XMLVM_FORWARD_DECL_java_lang_Long
XMLVM_FORWARD_DECL(java_lang_Long)
#endif
// Class declarations for java.lang.Math
XMLVM_DEFINE_CLASS(java_lang_Math, 6, XMLVM_ITABLE_SIZE_java_lang_Math)

extern JAVA_OBJECT __CLASS_java_lang_Math;
extern JAVA_OBJECT __CLASS_java_lang_Math_1ARRAY;
extern JAVA_OBJECT __CLASS_java_lang_Math_2ARRAY;
extern JAVA_OBJECT __CLASS_java_lang_Math_3ARRAY;
//XMLVM_BEGIN_DECLARATIONS
#define __ADDITIONAL_INSTANCE_FIELDS_java_lang_Math
//XMLVM_END_DECLARATIONS

#define __INSTANCE_FIELDS_java_lang_Math \
    __INSTANCE_FIELDS_java_lang_Object; \
    struct { \
        __ADDITIONAL_INSTANCE_FIELDS_java_lang_Math \
    } java_lang_Math

struct java_lang_Math {
    __TIB_DEFINITION_java_lang_Math* tib;
    struct {
        __INSTANCE_FIELDS_java_lang_Math;
    } fields;
};
#ifndef XMLVM_FORWARD_DECL_java_lang_Math
#define XMLVM_FORWARD_DECL_java_lang_Math
typedef struct java_lang_Math java_lang_Math;
#endif

#define XMLVM_VTABLE_SIZE_java_lang_Math 6

void __INIT_java_lang_Math();
void __INIT_IMPL_java_lang_Math();
void __DELETE_java_lang_Math(void* me, void* client_data);
void __INIT_INSTANCE_MEMBERS_java_lang_Math(JAVA_OBJECT me, int derivedClassWillRegisterFinalizer);
JAVA_OBJECT __NEW_java_lang_Math();
JAVA_OBJECT __NEW_INSTANCE_java_lang_Math();
JAVA_INT java_lang_Math_GET_FLOAT_EXPONENT_BIAS();
void java_lang_Math_PUT_FLOAT_EXPONENT_BIAS(JAVA_INT v);
JAVA_INT java_lang_Math_GET_FLOAT_EXPONENT_MASK();
void java_lang_Math_PUT_FLOAT_EXPONENT_MASK(JAVA_INT v);
JAVA_INT java_lang_Math_GET_DOUBLE_NON_MANTISSA_BITS();
void java_lang_Math_PUT_DOUBLE_NON_MANTISSA_BITS(JAVA_INT v);
JAVA_INT java_lang_Math_GET_DOUBLE_MANTISSA_BITS();
void java_lang_Math_PUT_DOUBLE_MANTISSA_BITS(JAVA_INT v);
JAVA_INT java_lang_Math_GET_FLOAT_NON_MANTISSA_BITS();
void java_lang_Math_PUT_FLOAT_NON_MANTISSA_BITS(JAVA_INT v);
JAVA_INT java_lang_Math_GET_FLOAT_MANTISSA_BITS();
void java_lang_Math_PUT_FLOAT_MANTISSA_BITS(JAVA_INT v);
JAVA_INT java_lang_Math_GET_DOUBLE_EXPONENT_BIAS();
void java_lang_Math_PUT_DOUBLE_EXPONENT_BIAS(JAVA_INT v);
JAVA_LONG java_lang_Math_GET_DOUBLE_EXPONENT_MASK();
void java_lang_Math_PUT_DOUBLE_EXPONENT_MASK(JAVA_LONG v);
JAVA_INT java_lang_Math_GET_FLOAT_MANTISSA_MASK();
void java_lang_Math_PUT_FLOAT_MANTISSA_MASK(JAVA_INT v);
JAVA_INT java_lang_Math_GET_FLOAT_SIGN_MASK();
void java_lang_Math_PUT_FLOAT_SIGN_MASK(JAVA_INT v);
JAVA_LONG java_lang_Math_GET_DOUBLE_MANTISSA_MASK();
void java_lang_Math_PUT_DOUBLE_MANTISSA_MASK(JAVA_LONG v);
JAVA_LONG java_lang_Math_GET_DOUBLE_SIGN_MASK();
void java_lang_Math_PUT_DOUBLE_SIGN_MASK(JAVA_LONG v);
JAVA_DOUBLE java_lang_Math_GET_E();
void java_lang_Math_PUT_E(JAVA_DOUBLE v);
JAVA_DOUBLE java_lang_Math_GET_PI();
void java_lang_Math_PUT_PI(JAVA_DOUBLE v);
JAVA_OBJECT java_lang_Math_GET_random();
void java_lang_Math_PUT_random(JAVA_OBJECT v);
void java_lang_Math___INIT___(JAVA_OBJECT me);
JAVA_DOUBLE java_lang_Math_abs___double(JAVA_DOUBLE n1);
JAVA_FLOAT java_lang_Math_abs___float(JAVA_FLOAT n1);
JAVA_INT java_lang_Math_abs___int(JAVA_INT n1);
JAVA_LONG java_lang_Math_abs___long(JAVA_LONG n1);
JAVA_DOUBLE java_lang_Math_acos___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_asin___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_atan___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_atan2___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_DOUBLE java_lang_Math_cbrt___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_ceil___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_cos___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_cosh___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_exp___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_expm1___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_floor___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_hypot___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_DOUBLE java_lang_Math_IEEEremainder___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_DOUBLE java_lang_Math_log___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_log10___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_log1p___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_max___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_FLOAT java_lang_Math_max___float_float(JAVA_FLOAT n1, JAVA_FLOAT n2);
JAVA_INT java_lang_Math_max___int_int(JAVA_INT n1, JAVA_INT n2);
JAVA_LONG java_lang_Math_max___long_long(JAVA_LONG n1, JAVA_LONG n2);
JAVA_DOUBLE java_lang_Math_min___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_FLOAT java_lang_Math_min___float_float(JAVA_FLOAT n1, JAVA_FLOAT n2);
JAVA_INT java_lang_Math_min___int_int(JAVA_INT n1, JAVA_INT n2);
JAVA_LONG java_lang_Math_min___long_long(JAVA_LONG n1, JAVA_LONG n2);
JAVA_DOUBLE java_lang_Math_pow___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_DOUBLE java_lang_Math_rint___double(JAVA_DOUBLE n1);
JAVA_LONG java_lang_Math_round___double(JAVA_DOUBLE n1);
JAVA_INT java_lang_Math_round___float(JAVA_FLOAT n1);
JAVA_DOUBLE java_lang_Math_signum___double(JAVA_DOUBLE n1);
JAVA_FLOAT java_lang_Math_signum___float(JAVA_FLOAT n1);
JAVA_DOUBLE java_lang_Math_sin___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_sinh___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_sqrt___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_tan___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_tanh___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_random__();
JAVA_DOUBLE java_lang_Math_toRadians___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_toDegrees___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_ulp___double(JAVA_DOUBLE n1);
JAVA_FLOAT java_lang_Math_ulp___float(JAVA_FLOAT n1);
JAVA_DOUBLE java_lang_Math_nextafter___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_FLOAT java_lang_Math_nextafterf___float_float(JAVA_FLOAT n1, JAVA_FLOAT n2);
JAVA_DOUBLE java_lang_Math_copySign___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_FLOAT java_lang_Math_copySign___float_float(JAVA_FLOAT n1, JAVA_FLOAT n2);
JAVA_INT java_lang_Math_getExponent___float(JAVA_FLOAT n1);
JAVA_INT java_lang_Math_getExponent___double(JAVA_DOUBLE n1);
JAVA_DOUBLE java_lang_Math_nextAfter___double_double(JAVA_DOUBLE n1, JAVA_DOUBLE n2);
JAVA_FLOAT java_lang_Math_nextAfter___float_double(JAVA_FLOAT n1, JAVA_DOUBLE n2);
JAVA_DOUBLE java_lang_Math_nextUp___double(JAVA_DOUBLE n1);
JAVA_FLOAT java_lang_Math_nextUp___float(JAVA_FLOAT n1);
JAVA_DOUBLE java_lang_Math_scalb___double_int(JAVA_DOUBLE n1, JAVA_INT n2);
JAVA_FLOAT java_lang_Math_scalb___float_int(JAVA_FLOAT n1, JAVA_INT n2);
JAVA_INT java_lang_Math_shiftIntBits___int_int(JAVA_INT n1, JAVA_INT n2);
JAVA_LONG java_lang_Math_shiftLongBits___long_long(JAVA_LONG n1, JAVA_LONG n2);

#endif