mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Updated Coding Style (markdown)
parent
0421b787e0
commit
eed80f794c
1 changed files with 1 additions and 1 deletions
|
@ -25,4 +25,4 @@ We recommend to follow these guidelines when writing code for RPCS3. They aren't
|
||||||
* Allocate memory with *MemoryAllocator*.
|
* Allocate memory with *MemoryAllocator*.
|
||||||
* Don't forget to switch endianness: That is, allocate `u32` with `MemoryAllocator<be_t<u32>>`
|
* Don't forget to switch endianness: That is, allocate `u32` with `MemoryAllocator<be_t<u32>>`
|
||||||
* Switch endianness on compile time if possible:
|
* Switch endianness on compile time if possible:
|
||||||
* When comparing the type `be_t<u32> x` with the constant `y`, use: `x.ToBE()` and `se32(y)` respectively to gain speed by switching the endianness of the constant in compilation time.
|
* When comparing `be_t<u32> x` with the constant `y`, use: `x.ToBE()` and `se32(y)` respectively to gain speed by switching endianness on `y` in compilation time.
|
Loading…
Add table
Add a link
Reference in a new issue