Skip to content

Commit 88645ff

Browse files
authored
Merge pull request #464 from ditotechnologies/gpu-comment-fix
Update float.h "# else // GPU" comments
2 parents 3976fd7 + 49bba7c commit 88645ff

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/pbrt/util/float.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ inline PBRT_CPU_GPU Float AddRoundUp(Float a, Float b) {
203203
#else
204204
return __fadd_ru(a, b);
205205
#endif
206-
#else // GPU
206+
#else // CPU
207207
return NextFloatUp(a + b);
208208
#endif
209209
}
@@ -214,7 +214,7 @@ inline PBRT_CPU_GPU Float AddRoundDown(Float a, Float b) {
214214
#else
215215
return __fadd_rd(a, b);
216216
#endif
217-
#else // GPU
217+
#else // CPU
218218
return NextFloatDown(a + b);
219219
#endif
220220
}
@@ -233,7 +233,7 @@ inline PBRT_CPU_GPU Float MulRoundUp(Float a, Float b) {
233233
#else
234234
return __fmul_ru(a, b);
235235
#endif
236-
#else // GPU
236+
#else // CPU
237237
return NextFloatUp(a * b);
238238
#endif
239239
}
@@ -245,7 +245,7 @@ inline PBRT_CPU_GPU Float MulRoundDown(Float a, Float b) {
245245
#else
246246
return __fmul_rd(a, b);
247247
#endif
248-
#else // GPU
248+
#else // CPU
249249
return NextFloatDown(a * b);
250250
#endif
251251
}
@@ -257,7 +257,7 @@ inline PBRT_CPU_GPU Float DivRoundUp(Float a, Float b) {
257257
#else
258258
return __fdiv_ru(a, b);
259259
#endif
260-
#else // GPU
260+
#else // CPU
261261
return NextFloatUp(a / b);
262262
#endif
263263
}
@@ -269,7 +269,7 @@ inline PBRT_CPU_GPU Float DivRoundDown(Float a, Float b) {
269269
#else
270270
return __fdiv_rd(a, b);
271271
#endif
272-
#else // GPU
272+
#else // CPU
273273
return NextFloatDown(a / b);
274274
#endif
275275
}
@@ -281,7 +281,7 @@ inline PBRT_CPU_GPU Float SqrtRoundUp(Float a) {
281281
#else
282282
return __fsqrt_ru(a);
283283
#endif
284-
#else // GPU
284+
#else // CPU
285285
return NextFloatUp(std::sqrt(a));
286286
#endif
287287
}
@@ -293,7 +293,7 @@ inline PBRT_CPU_GPU Float SqrtRoundDown(Float a) {
293293
#else
294294
return __fsqrt_rd(a);
295295
#endif
296-
#else // GPU
296+
#else // CPU
297297
return std::max<Float>(0, NextFloatDown(std::sqrt(a)));
298298
#endif
299299
}
@@ -305,7 +305,7 @@ inline PBRT_CPU_GPU Float FMARoundUp(Float a, Float b, Float c) {
305305
#else
306306
return __fma_ru(a, b, c);
307307
#endif
308-
#else // GPU
308+
#else // CPU
309309
return NextFloatUp(FMA(a, b, c));
310310
#endif
311311
}
@@ -317,7 +317,7 @@ inline PBRT_CPU_GPU Float FMARoundDown(Float a, Float b, Float c) {
317317
#else
318318
return __fma_rd(a, b, c);
319319
#endif
320-
#else // GPU
320+
#else // CPU
321321
return NextFloatDown(FMA(a, b, c));
322322
#endif
323323
}

0 commit comments

Comments
 (0)