• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Site › Dolphin Patches (Archive) v
« Previous 1 … 3 4 5 6 7 Next »

[PATCH] Shrink struct GekkoOPTemplate and JitBlock size
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
[PATCH] Shrink struct GekkoOPTemplate and JitBlock size
10-02-2010, 10:45 PM
#1
u-ra
Unregistered
 
Hi,

This patch shrinks struct JitBlock size from 80 to 72, and GekkoOPTemplate from 32 to 24 bytes on x86-64.
The latter adds up quite nicely across JIT tables:


before:
u-ra: sizeof(GekkoOPTemplate) = 32
u-ra: sizeof(primarytable) = 2048
u-ra: sizeof(table4) = 416
u-ra: sizeof(table4_2) = 544
u-ra: sizeof(table4_3) = 128
u-ra: sizeof(table19) = 448
u-ra: sizeof(table31) = 2496
u-ra: sizeof(table31_2) = 512
u-ra: sizeof(table59) = 288
u-ra: sizeof(table63) = 480
u-ra: sizeof(table63_2) = 352

after:
u-ra: sizeof(GekkoOPTemplate) = 24
u-ra: sizeof(primarytable) = 1536
u-ra: sizeof(table4) = 312
u-ra: sizeof(table4_2) = 408
u-ra: sizeof(table4_3) = 96
u-ra: sizeof(table19) = 336
u-ra: sizeof(table31) = 1872
u-ra: sizeof(table31_2) = 384
u-ra: sizeof(table59) = 216
u-ra: sizeof(table63) = 360
u-ra: sizeof(table63_2) = 264


Attached Files
.patch   dolphin-shrink-structs.patch (Size: 72.15 KB / Downloads: 195)
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma