Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
flycast
Commits
f942d79d
Commit
f942d79d
authored
Apr 11, 2021
by
Libretro-Admin
Browse files
Backport
https://github.com/flyinghead/flycast/commit/67435c71e834380179eeef1612a8d491df73b1c1
parent
7c85bc77
Changes
6
Hide whitespace changes
Inline
Side-by-side
core/hw/aica/dsp.cpp
View file @
f942d79d
...
...
@@ -62,7 +62,7 @@ s32 DYNACALL UNPACK(u16 val)
return
uval
;
}
void
DecodeInst
(
u32
*
IPtr
,
_INST
*
i
)
void
DecodeInst
(
const
u32
*
IPtr
,
_INST
*
i
)
{
i
->
TRA
=
(
IPtr
[
0
]
>>
9
)
&
0x7F
;
i
->
TWT
=
IPtr
[
0
]
&
0x100
;
...
...
core/hw/aica/dsp.h
View file @
f942d79d
...
...
@@ -124,6 +124,6 @@ struct _INST
bool
NXADR
;
//MRQ set
};
void
DecodeInst
(
u32
*
IPtr
,
_INST
*
i
);
void
DecodeInst
(
const
u32
*
IPtr
,
_INST
*
i
);
u16
DYNACALL
PACK
(
s32
val
);
s32
DYNACALL
UNPACK
(
u16
val
);
core/hw/flashrom/flashrom.h
View file @
f942d79d
...
...
@@ -645,7 +645,7 @@ private:
return
num_physical_blocks
(
size
)
-
num_bitmap_blocks
(
size
)
-
1
;
}
inline
int
is_allocated
(
u8
*
bitmap
,
u32
phys_id
)
inline
int
is_allocated
(
const
u8
*
bitmap
,
u32
phys_id
)
{
int
index
=
(
phys_id
-
1
)
%
FLASH_BITMAP_BLOCKS
;
return
(
bitmap
[
index
/
8
]
&
(
0x80
>>
(
index
%
8
)))
==
0x0
;
...
...
core/hw/pvr/pvr_mem.cpp
View file @
f942d79d
...
...
@@ -57,7 +57,7 @@ void YUV_init(void)
#pragma GCC optimize ("-O2")
#endif
static
void
YUV_Block8x8
(
u8
*
inuv
,
u8
*
iny
,
u8
*
out
)
static
void
YUV_Block8x8
(
const
u8
*
inuv
,
const
u8
*
iny
,
u8
*
out
)
{
u8
*
line_out_0
=
out
+
0
;
u8
*
line_out_1
=
out
+
YUV_x_size
*
2
;
...
...
core/hw/sh4/dyna/blockmanager.h
View file @
f942d79d
...
...
@@ -64,7 +64,7 @@ struct RuntimeBlockInfo: RuntimeBlockInfo_Core
vector
<
shil_opcode
>
oplist
;
bool
contains_code
(
u8
*
ptr
)
bool
contains_code
(
const
u8
*
ptr
)
{
return
((
size_t
)(
ptr
-
(
u8
*
)
code
))
<
host_code_size
;
}
...
...
core/hw/sh4/dyna/shil_canonical.h
View file @
f942d79d
...
...
@@ -919,7 +919,7 @@ shil_opc(fipr)
#if HOST_CPU == CPU_X86 || HOST_CPU == CPU_X64
shil_canonical
(
f32
,
f1
,(
float
*
fn
,
float
*
fm
),
f32
,
f1
,(
const
float
*
fn
,
const
float
*
fm
),
// multiplications are done with 28 bits of precision (53 - 25) and the final sum at 30 bits
double
idp
=
reduce_precision
<
25
>
((
double
)
fn
[
0
]
*
fm
[
0
]);
...
...
@@ -960,7 +960,7 @@ shil_opc(ftrv)
#if HOST_CPU == CPU_X86 || HOST_CPU == CPU_X64
shil_canonical
(
void
,
f1
,(
float
*
fd
,
float
*
fn
,
float
*
fm
),
void
,
f1
,(
float
*
fd
,
const
float
*
fn
,
const
float
*
fm
),
double
v1
=
reduce_precision
<
25
>
((
double
)
fm
[
0
]
*
fn
[
0
])
+
reduce_precision
<
25
>
((
double
)
fm
[
4
]
*
fn
[
1
])
+
...
...
@@ -1100,7 +1100,7 @@ shil_opc_end()
shil_opc
(
frswap
)
shil_canonical
(
void
,
f1
,(
u64
*
fd1
,
u64
*
fd2
,
u64
*
fs1
,
u64
*
fs2
),
void
,
f1
,(
u64
*
fd1
,
u64
*
fd2
,
const
u64
*
fs1
,
const
u64
*
fs2
),
u64
temp
;
for
(
int
i
=
0
;
i
<
8
;
i
++
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment