mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(rewind.c) Style nits
This commit is contained in:
parent
e0bf3b4ae4
commit
a3a26099b2
1 changed files with 5 additions and 2 deletions
7
rewind.c
7
rewind.c
|
@ -28,6 +28,7 @@
|
||||||
#ifndef UINT16_MAX
|
#ifndef UINT16_MAX
|
||||||
#define UINT16_MAX 0xffff
|
#define UINT16_MAX 0xffff
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef UINT32_MAX
|
#ifndef UINT32_MAX
|
||||||
#define UINT32_MAX 0xffffffffu
|
#define UINT32_MAX 0xffffffffu
|
||||||
#endif
|
#endif
|
||||||
|
@ -222,12 +223,14 @@ static INLINE size_t find_same(const uint16_t *a, const uint16_t *b)
|
||||||
return a - a_org;
|
return a - a_org;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t state_manager_raw_compress(const void *src, const void *dst, size_t len, void *patch)
|
size_t state_manager_raw_compress(const void *src,
|
||||||
|
const void *dst, size_t len, void *patch)
|
||||||
{
|
{
|
||||||
const uint16_t *old16 = (const uint16_t*)src;
|
const uint16_t *old16 = (const uint16_t*)src;
|
||||||
const uint16_t *new16 = (const uint16_t*)dst;
|
const uint16_t *new16 = (const uint16_t*)dst;
|
||||||
uint16_t *compressed16 = (uint16_t*)patch;
|
uint16_t *compressed16 = (uint16_t*)patch;
|
||||||
size_t num16s = (len + sizeof(uint16_t) - 1) / sizeof(uint16_t);
|
size_t num16s = (len + sizeof(uint16_t) - 1)
|
||||||
|
/ sizeof(uint16_t);
|
||||||
|
|
||||||
while (num16s)
|
while (num16s)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue