mirror of
https://github.com/open-simh/simh.git
synced 2026-05-02 14:30:22 +00:00
Cleaned up parameter declarations in all simulators to achieve clean compiles on all platforms
Very minor in all cases, but the strange case of swtp_cpu.c This module used expressions of the form: PC = ++PC & ADDRMASK; Officially, the C language says that expressions which modify the same variable in more than one place have undefined behavior. These were changed to the legal form which performs the desired action: PC = (PC + 1) & ADDRMASK;
This commit is contained in:
@@ -159,7 +159,7 @@ t_stat fp15_fmul (int32 ir, UFP *a, UFP *b);
|
||||
t_stat fp15_fdiv (int32 ir, UFP *a, UFP *b);
|
||||
t_stat fp15_fix (int32 ir, UFP *a);
|
||||
t_stat fp15_norm (int32 ir, UFP *a, UFP *b, t_bool rnd);
|
||||
t_stat fp15_exc (int32 sta);
|
||||
t_stat fp15_exc (t_stat sta);
|
||||
void fp15_asign (int32 ir, UFP *a);
|
||||
void dp_add (UFP *a, UFP *b);
|
||||
void dp_sub (UFP *a, UFP *b);
|
||||
|
||||
Reference in New Issue
Block a user