@@ -203,7 +203,7 @@ inline PBRT_CPU_GPU Float AddRoundUp(Float a, Float b) {
203
203
#else
204
204
return __fadd_ru (a, b);
205
205
#endif
206
- #else // GPU
206
+ #else // CPU
207
207
return NextFloatUp (a + b);
208
208
#endif
209
209
}
@@ -214,7 +214,7 @@ inline PBRT_CPU_GPU Float AddRoundDown(Float a, Float b) {
214
214
#else
215
215
return __fadd_rd (a, b);
216
216
#endif
217
- #else // GPU
217
+ #else // CPU
218
218
return NextFloatDown (a + b);
219
219
#endif
220
220
}
@@ -233,7 +233,7 @@ inline PBRT_CPU_GPU Float MulRoundUp(Float a, Float b) {
233
233
#else
234
234
return __fmul_ru (a, b);
235
235
#endif
236
- #else // GPU
236
+ #else // CPU
237
237
return NextFloatUp (a * b);
238
238
#endif
239
239
}
@@ -245,7 +245,7 @@ inline PBRT_CPU_GPU Float MulRoundDown(Float a, Float b) {
245
245
#else
246
246
return __fmul_rd (a, b);
247
247
#endif
248
- #else // GPU
248
+ #else // CPU
249
249
return NextFloatDown (a * b);
250
250
#endif
251
251
}
@@ -257,7 +257,7 @@ inline PBRT_CPU_GPU Float DivRoundUp(Float a, Float b) {
257
257
#else
258
258
return __fdiv_ru (a, b);
259
259
#endif
260
- #else // GPU
260
+ #else // CPU
261
261
return NextFloatUp (a / b);
262
262
#endif
263
263
}
@@ -269,7 +269,7 @@ inline PBRT_CPU_GPU Float DivRoundDown(Float a, Float b) {
269
269
#else
270
270
return __fdiv_rd (a, b);
271
271
#endif
272
- #else // GPU
272
+ #else // CPU
273
273
return NextFloatDown (a / b);
274
274
#endif
275
275
}
@@ -281,7 +281,7 @@ inline PBRT_CPU_GPU Float SqrtRoundUp(Float a) {
281
281
#else
282
282
return __fsqrt_ru (a);
283
283
#endif
284
- #else // GPU
284
+ #else // CPU
285
285
return NextFloatUp (std::sqrt (a));
286
286
#endif
287
287
}
@@ -293,7 +293,7 @@ inline PBRT_CPU_GPU Float SqrtRoundDown(Float a) {
293
293
#else
294
294
return __fsqrt_rd (a);
295
295
#endif
296
- #else // GPU
296
+ #else // CPU
297
297
return std::max<Float>(0 , NextFloatDown (std::sqrt (a)));
298
298
#endif
299
299
}
@@ -305,7 +305,7 @@ inline PBRT_CPU_GPU Float FMARoundUp(Float a, Float b, Float c) {
305
305
#else
306
306
return __fma_ru (a, b, c);
307
307
#endif
308
- #else // GPU
308
+ #else // CPU
309
309
return NextFloatUp (FMA (a, b, c));
310
310
#endif
311
311
}
@@ -317,7 +317,7 @@ inline PBRT_CPU_GPU Float FMARoundDown(Float a, Float b, Float c) {
317
317
#else
318
318
return __fma_rd (a, b, c);
319
319
#endif
320
- #else // GPU
320
+ #else // CPU
321
321
return NextFloatDown (FMA (a, b, c));
322
322
#endif
323
323
}
0 commit comments