summarylogtreecommitdiffstats
path: root/cmath_everywhere.patch
blob: b819cc5d27095e18ee9ea04d7e9cb9ddf34b660d (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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
diff --git a/src/accel_filter_interpreter.cc b/src/accel_filter_interpreter.cc
index f63d876..f4ddeec 100644
--- a/src/accel_filter_interpreter.cc
+++ b/src/accel_filter_interpreter.cc
@@ -5,7 +5,7 @@
 #include "gestures/include/accel_filter_interpreter.h"
 
 #include <algorithm>
-#include <math.h>
+#include <cmath>
 
 #include "gestures/include/gestures.h"
 #include "gestures/include/interpreter.h"
diff --git a/src/accel_filter_interpreter_unittest.cc b/src/accel_filter_interpreter_unittest.cc
index 186d27e..c51a4b3 100644
--- a/src/accel_filter_interpreter_unittest.cc
+++ b/src/accel_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <utility>
 #include <vector>
 
diff --git a/src/box_filter_interpreter_unittest.cc b/src/box_filter_interpreter_unittest.cc
index 12be285..e010c92 100644
--- a/src/box_filter_interpreter_unittest.cc
+++ b/src/box_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <vector>
 #include <utility>
 
diff --git a/src/cr48_profile_sensor_filter_interpreter.cc b/src/cr48_profile_sensor_filter_interpreter.cc
index 48b83e3..788b860 100644
--- a/src/cr48_profile_sensor_filter_interpreter.cc
+++ b/src/cr48_profile_sensor_filter_interpreter.cc
@@ -4,7 +4,7 @@
 
 #include "gestures/include/cr48_profile_sensor_filter_interpreter.h"
 
-#include <math.h>
+#include <cmath>
 
 #include "gestures/include/gestures.h"
 #include "gestures/include/interpreter.h"
diff --git a/src/integral_gesture_filter_interpreter.cc b/src/integral_gesture_filter_interpreter.cc
index 3360e63..f9b66f0 100644
--- a/src/integral_gesture_filter_interpreter.cc
+++ b/src/integral_gesture_filter_interpreter.cc
@@ -4,7 +4,7 @@
 
 #include "gestures/include/integral_gesture_filter_interpreter.h"
 
-#include <math.h>
+#include <cmath>
 
 #include "gestures/include/gestures.h"
 #include "gestures/include/interpreter.h"
diff --git a/src/integral_gesture_filter_interpreter_unittest.cc b/src/integral_gesture_filter_interpreter_unittest.cc
index 1c6fcdc..a9fbcb5 100644
--- a/src/integral_gesture_filter_interpreter_unittest.cc
+++ b/src/integral_gesture_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <vector>
 #include <utility>
 
diff --git a/src/json_value.cpp b/src/json_value.cpp
index a2a4a67..c391cf2 100644
--- a/src/json_value.cpp
+++ b/src/json_value.cpp
@@ -11,7 +11,7 @@
 #  include "json_batchallocator.h"
 # endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
 #endif // if !defined(JSON_IS_AMALGAMATION)
-#include <math.h>
+#include <cmath>
 #include <sstream>
 #include <utility>
 #include <stdexcept>
diff --git a/src/lookahead_filter_interpreter.cc b/src/lookahead_filter_interpreter.cc
index 8abfc2e..ebbc0bf 100644
--- a/src/lookahead_filter_interpreter.cc
+++ b/src/lookahead_filter_interpreter.cc
@@ -5,7 +5,7 @@
 #include "gestures/include/lookahead_filter_interpreter.h"
 
 #include <algorithm>
-#include <math.h>
+#include <cmath>
 #include <values.h>
 
 #include "gestures/include/tracer.h"
diff --git a/src/lookahead_filter_interpreter_unittest.cc b/src/lookahead_filter_interpreter_unittest.cc
index 7830497..e5bb626 100644
--- a/src/lookahead_filter_interpreter_unittest.cc
+++ b/src/lookahead_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <set>
 #include <stdio.h>
 #include <utility>
diff --git a/src/mouse_interpreter.cc b/src/mouse_interpreter.cc
index 4c33749..5219fed 100644
--- a/src/mouse_interpreter.cc
+++ b/src/mouse_interpreter.cc
@@ -4,7 +4,7 @@
 
 #include "gestures/include/mouse_interpreter.h"
 
-#include <math.h>
+#include <cmath>
 
 #include "gestures/include/macros.h"
 #include "gestures/include/tracer.h"
diff --git a/src/palm_classifying_filter_interpreter_unittest.cc b/src/palm_classifying_filter_interpreter_unittest.cc
index b8e74ba..0bde311 100644
--- a/src/palm_classifying_filter_interpreter_unittest.cc
+++ b/src/palm_classifying_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <stdio.h>
 #include <vector>
 #include <utility>
diff --git a/src/scaling_filter_interpreter.cc b/src/scaling_filter_interpreter.cc
index 87afd42..1bcf10e 100644
--- a/src/scaling_filter_interpreter.cc
+++ b/src/scaling_filter_interpreter.cc
@@ -4,7 +4,7 @@
 
 #include "gestures/include/scaling_filter_interpreter.h"
 
-#include <math.h>
+#include <cmath>
 
 #include "gestures/include/gestures.h"
 #include "gestures/include/interpreter.h"
diff --git a/src/scaling_filter_interpreter_unittest.cc b/src/scaling_filter_interpreter_unittest.cc
index b43b4b1..dcd6efb 100644
--- a/src/scaling_filter_interpreter_unittest.cc
+++ b/src/scaling_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <memory>
 #include <vector>
 #include <utility>
diff --git a/src/sensor_jump_filter_interpreter_unittest.cc b/src/sensor_jump_filter_interpreter_unittest.cc
index eda4526..2817d30 100644
--- a/src/sensor_jump_filter_interpreter_unittest.cc
+++ b/src/sensor_jump_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <vector>
 #include <utility>
 
diff --git a/src/split_correcting_filter_interpreter.cc b/src/split_correcting_filter_interpreter.cc
index 4fbc92f..87e2281 100644
--- a/src/split_correcting_filter_interpreter.cc
+++ b/src/split_correcting_filter_interpreter.cc
@@ -4,7 +4,7 @@
 
 #include "gestures/include/split_correcting_filter_interpreter.h"
 
-#include <math.h>
+#include <cmath>
 
 #include "gestures/include/tracer.h"
 #include "gestures/include/util.h"
diff --git a/src/stuck_button_inhibitor_filter_interpreter_unittest.cc b/src/stuck_button_inhibitor_filter_interpreter_unittest.cc
index 7c61f4f..a132dee 100644
--- a/src/stuck_button_inhibitor_filter_interpreter_unittest.cc
+++ b/src/stuck_button_inhibitor_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <vector>
 #include <utility>
 
diff --git a/src/t5r2_correcting_filter_interpreter_unittest.cc b/src/t5r2_correcting_filter_interpreter_unittest.cc
index f45bc81..bbb5e5c 100644
--- a/src/t5r2_correcting_filter_interpreter_unittest.cc
+++ b/src/t5r2_correcting_filter_interpreter_unittest.cc
@@ -3,7 +3,7 @@
 // found in the LICENSE file.
 
 #include <deque>
-#include <math.h>
+#include <cmath>
 #include <vector>
 #include <utility>