IEEE754rUtils.java
3.95 KB
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
156
157
158
159
160
package org.apache.commons.lang3.math;
import org.apache.commons.lang3.Validate;
public class IEEE754rUtils
{
public static double max(double paramDouble1, double paramDouble2)
{
if (Double.isNaN(paramDouble1)) {
return paramDouble2;
}
if (Double.isNaN(paramDouble2)) {
return paramDouble1;
}
return Math.max(paramDouble1, paramDouble2);
}
public static double max(double paramDouble1, double paramDouble2, double paramDouble3)
{
return max(max(paramDouble1, paramDouble2), paramDouble3);
}
public static double max(double... paramVarArgs)
{
int i = 1;
if (paramVarArgs == null) {
throw new IllegalArgumentException("The Array must not be null");
}
if (paramVarArgs.length != 0) {}
double d;
for (boolean bool = true;; bool = false)
{
Validate.isTrue(bool, "Array cannot be empty.", new Object[0]);
d = paramVarArgs[0];
while (i < paramVarArgs.length)
{
d = max(paramVarArgs[i], d);
i += 1;
}
}
return d;
}
public static float max(float paramFloat1, float paramFloat2)
{
if (Float.isNaN(paramFloat1)) {
return paramFloat2;
}
if (Float.isNaN(paramFloat2)) {
return paramFloat1;
}
return Math.max(paramFloat1, paramFloat2);
}
public static float max(float paramFloat1, float paramFloat2, float paramFloat3)
{
return max(max(paramFloat1, paramFloat2), paramFloat3);
}
public static float max(float... paramVarArgs)
{
int i = 1;
if (paramVarArgs == null) {
throw new IllegalArgumentException("The Array must not be null");
}
if (paramVarArgs.length != 0) {}
float f;
for (boolean bool = true;; bool = false)
{
Validate.isTrue(bool, "Array cannot be empty.", new Object[0]);
f = paramVarArgs[0];
while (i < paramVarArgs.length)
{
f = max(paramVarArgs[i], f);
i += 1;
}
}
return f;
}
public static double min(double paramDouble1, double paramDouble2)
{
if (Double.isNaN(paramDouble1)) {
return paramDouble2;
}
if (Double.isNaN(paramDouble2)) {
return paramDouble1;
}
return Math.min(paramDouble1, paramDouble2);
}
public static double min(double paramDouble1, double paramDouble2, double paramDouble3)
{
return min(min(paramDouble1, paramDouble2), paramDouble3);
}
public static double min(double... paramVarArgs)
{
int i = 1;
if (paramVarArgs == null) {
throw new IllegalArgumentException("The Array must not be null");
}
if (paramVarArgs.length != 0) {}
double d;
for (boolean bool = true;; bool = false)
{
Validate.isTrue(bool, "Array cannot be empty.", new Object[0]);
d = paramVarArgs[0];
while (i < paramVarArgs.length)
{
d = min(paramVarArgs[i], d);
i += 1;
}
}
return d;
}
public static float min(float paramFloat1, float paramFloat2)
{
if (Float.isNaN(paramFloat1)) {
return paramFloat2;
}
if (Float.isNaN(paramFloat2)) {
return paramFloat1;
}
return Math.min(paramFloat1, paramFloat2);
}
public static float min(float paramFloat1, float paramFloat2, float paramFloat3)
{
return min(min(paramFloat1, paramFloat2), paramFloat3);
}
public static float min(float... paramVarArgs)
{
int i = 1;
if (paramVarArgs == null) {
throw new IllegalArgumentException("The Array must not be null");
}
if (paramVarArgs.length != 0) {}
float f;
for (boolean bool = true;; bool = false)
{
Validate.isTrue(bool, "Array cannot be empty.", new Object[0]);
f = paramVarArgs[0];
while (i < paramVarArgs.length)
{
f = min(paramVarArgs[i], f);
i += 1;
}
}
return f;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/apache/commons/lang3/math/IEEE754rUtils.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/