mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
Updated Coding Style (markdown)
parent
0477d16f15
commit
24432511a9
@ -24,5 +24,5 @@ We recommend to follow these guidelines when writing code for RPCS3. They aren't
|
||||
* Pointers to the function `T (*)(t1 a1, t2 a2)` are `mem_func_ptr_t<T (*)(t1 a1, t2 a2)>`
|
||||
* Allocate memory with *MemoryAllocator*.
|
||||
* Don't forget to switch endianness: That is, allocate `u32` with `MemoryAllocator<be_t<u32>>`
|
||||
* Switch endianness on compile time if possible:
|
||||
* Switch endianness of constants on compile time if possible:
|
||||
* 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…
Reference in New Issue
Block a user