Skip to content

Commit 28ec650

Browse files
committed
Compile fixes
1 parent 329bcc6 commit 28ec650

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

cpu/ppc/ppcfpopcodes.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void dppc_interpreter::ppc_fdiv() {
222222
ppc_store_dfpresult_flt(reg_d, ppc_dblresult64_d);
223223
fpresult_update(ppc_dblresult64_d);
224224

225-
if (isinf(val_reg_a) && isinf(val_reg_b))
225+
if (std::isinf(val_reg_a) && std::isinf(val_reg_b))
226226
ppc_state.fpscr |= VXIDI;
227227

228228
if ((val_reg_a == 0.0) && (val_reg_b == 0.0))
@@ -245,7 +245,7 @@ void dppc_interpreter::ppc_fmul() {
245245
ppc_store_dfpresult_flt(reg_d, ppc_dblresult64_d);
246246
fpresult_update(ppc_dblresult64_d);
247247

248-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
248+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
249249
ppc_state.fpscr |= VXIMZ;
250250

251251
if (rec)
@@ -270,7 +270,7 @@ void dppc_interpreter::ppc_fmadd() {
270270
if (((val_reg_a == inf) && (val_reg_b == -inf)) || ((val_reg_a == -inf) && (val_reg_b == inf)))
271271
ppc_state.fpscr |= VXISI;
272272

273-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
273+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
274274
ppc_state.fpscr |= VXIMZ;
275275

276276
if (rec)
@@ -291,7 +291,7 @@ void dppc_interpreter::ppc_fmsub() {
291291
ppc_store_dfpresult_flt(reg_d, ppc_dblresult64_d);
292292
fpresult_update(ppc_dblresult64_d);
293293

294-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
294+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
295295
ppc_state.fpscr |= VXIMZ;
296296

297297
double inf = std::numeric_limits<double>::infinity();
@@ -323,7 +323,7 @@ void dppc_interpreter::ppc_fnmadd() {
323323
if (((val_reg_a == inf) && (val_reg_b == -inf)) || ((val_reg_a == -inf) && (val_reg_b == inf)))
324324
ppc_state.fpscr |= VXISI;
325325

326-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
326+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
327327
ppc_state.fpscr |= VXIMZ;
328328

329329
if (rec)
@@ -344,7 +344,7 @@ void dppc_interpreter::ppc_fnmsub() {
344344
ppc_store_dfpresult_flt(reg_d, ppc_dblresult64_d);
345345
fpresult_update(ppc_dblresult64_d);
346346

347-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
347+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
348348
ppc_state.fpscr |= VXIMZ;
349349

350350
double inf = std::numeric_limits<double>::infinity();
@@ -410,7 +410,7 @@ void dppc_interpreter::ppc_fdivs() {
410410

411411
double ppc_dblresult64_d = (float)(val_reg_a / val_reg_b);
412412

413-
if (isinf(val_reg_a) && isinf(val_reg_b))
413+
if (std::isinf(val_reg_a) && std::isinf(val_reg_b))
414414
ppc_state.fpscr |= VXIDI;
415415

416416
if ((val_reg_a == 0.0) && (val_reg_b == 0.0))
@@ -434,7 +434,7 @@ void dppc_interpreter::ppc_fmuls() {
434434

435435
double ppc_dblresult64_d = (float)(val_reg_a * val_reg_c);
436436

437-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
437+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
438438
ppc_state.fpscr |= VXIMZ;
439439

440440
ppc_store_sfpresult_flt(reg_d, ppc_dblresult64_d);
@@ -463,7 +463,7 @@ void dppc_interpreter::ppc_fmadds() {
463463
if (((val_reg_a == inf) && (val_reg_b == -inf)) || ((val_reg_a == -inf) && (val_reg_b == inf)))
464464
ppc_state.fpscr |= VXISI;
465465

466-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
466+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
467467
ppc_state.fpscr |= VXIMZ;
468468

469469
if (rec)
@@ -488,7 +488,7 @@ void dppc_interpreter::ppc_fmsubs() {
488488
ppc_store_sfpresult_flt(reg_d, ppc_dblresult64_d);
489489
fpresult_update(ppc_dblresult64_d);
490490

491-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
491+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
492492
ppc_state.fpscr |= VXIMZ;
493493

494494
double inf = std::numeric_limits<double>::infinity();
@@ -520,7 +520,7 @@ void dppc_interpreter::ppc_fnmadds() {
520520
if (((val_reg_a == inf) && (val_reg_b == -inf)) || ((val_reg_a == -inf) && (val_reg_b == inf)))
521521
ppc_state.fpscr |= VXISI;
522522

523-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
523+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
524524
ppc_state.fpscr |= VXIMZ;
525525

526526
if (rec)
@@ -541,7 +541,7 @@ void dppc_interpreter::ppc_fnmsubs() {
541541
ppc_store_sfpresult_flt(reg_d, ppc_dblresult64_d);
542542
fpresult_update(ppc_dblresult64_d);
543543

544-
if ((isinf(val_reg_a) && (val_reg_c == 0.0)) || (isinf(val_reg_c) && (val_reg_a == 0.0)))
544+
if ((std::isinf(val_reg_a) && (val_reg_c == 0.0)) || (std::isinf(val_reg_c) && (val_reg_a == 0.0)))
545545
ppc_state.fpscr |= VXIMZ;
546546

547547
double inf = std::numeric_limits<double>::infinity();

cpu/ppc/ppcopcodes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void do_ctx_sync() {
8484
}
8585
}
8686

87-
static void add_ctx_sync_action(const CtxSyncCallback& cb) {
87+
void add_ctx_sync_action(const CtxSyncCallback& cb) {
8888
gCtxSyncCallbacks.push_back(cb);
8989
}
9090

0 commit comments

Comments
 (0)