diff options
| author | 2015-05-06 01:57:23 -0300 | |
|---|---|---|
| committer | 2015-05-06 23:45:05 -0300 | |
| commit | c916bcf7b53bb7d0e909e7ec45b0740a09a661b6 (patch) | |
| tree | 3369fdbae3bc36fb05d38c1da03a176905193db4 /src/common | |
| parent | Common: Move NonCopyable to common_types.h (diff) | |
| download | yuzu-c916bcf7b53bb7d0e909e7ec45b0740a09a661b6.tar.gz yuzu-c916bcf7b53bb7d0e909e7ec45b0740a09a661b6.tar.xz yuzu-c916bcf7b53bb7d0e909e7ec45b0740a09a661b6.zip | |
Move typedefs from kernel.h to more appropriate places
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/common_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h index 5c004c5fa..644709ba6 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h | |||
| @@ -47,6 +47,11 @@ typedef std::int64_t s64; ///< 64-bit signed int | |||
| 47 | typedef float f32; ///< 32-bit floating point | 47 | typedef float f32; ///< 32-bit floating point |
| 48 | typedef double f64; ///< 64-bit floating point | 48 | typedef double f64; ///< 64-bit floating point |
| 49 | 49 | ||
| 50 | // TODO: It would be nice to eventually replace these with strong types that prevent accidental | ||
| 51 | // conversion between each other. | ||
| 52 | typedef u32 VAddr; ///< Represents a pointer in the userspace virtual address space. | ||
| 53 | typedef u32 PAddr; ///< Represents a pointer in the ARM11 physical address space. | ||
| 54 | |||
| 50 | /// Union for fast 16-bit type casting | 55 | /// Union for fast 16-bit type casting |
| 51 | union t16 { | 56 | union t16 { |
| 52 | u8 _u8[2]; ///< 8-bit unsigned char(s) | 57 | u8 _u8[2]; ///< 8-bit unsigned char(s) |