mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 06:05:38 +00:00
fpu: Replace uint8 typedef with uint8_t
Replace the uint8 softfloat-specific typedef with uint8_t. This change was made with find include hw fpu target-* -name '*.[ch]' | xargs sed -i -e 's/\buint8\b/uint8_t/g' together with manual removal of the typedef definition and manual fixing of more erroneous uses found via test compilation. It turns out that the only code using this type is an accidental use where uint8_t was intended anyway... Backports commit d341d9f3062c74d74c94ebe6359f067bed8311ba from qemu
This commit is contained in:
parent
2eaf79bfd3
commit
c8220d5aaf
|
@ -90,16 +90,11 @@ this code that are retained.
|
||||||
#include "config-host.h"
|
#include "config-host.h"
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/* This 'flag' type must be able to hold at least 0 and 1. It should
|
||||||
| Each of the following `typedef's defines the most convenient type that holds
|
* probably be replaced with 'bool' but the uses would need to be audited
|
||||||
| integers of at least as many bits as specified. For example, `uint8' should
|
* to check that they weren't accidentally relying on it being a larger type.
|
||||||
| be the most convenient type that can hold unsigned integers of as many as
|
*/
|
||||||
| 8 bits. The `flag' type must be able to hold either a 0 or 1. For most
|
|
||||||
| implementations of C, `flag', `uint8', and `int8' should all be `typedef'ed
|
|
||||||
| to the same as `int'.
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
typedef uint8_t flag;
|
typedef uint8_t flag;
|
||||||
typedef uint8_t uint8;
|
|
||||||
|
|
||||||
#define LIT64( a ) a##LL
|
#define LIT64( a ) a##LL
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue