ソースを参照

Some formatting changes to adhere to Panda coding style guide.

aignacio_sf 20 年 前
コミット
9a84565fd8
2 ファイル変更320 行追加367 行削除
  1. 315 363
      panda/src/dxgsg9/lru.cxx
  2. 5 4
      panda/src/dxgsg9/lru.h

ファイルの差分が大きいため隠しています
+ 315 - 363
panda/src/dxgsg9/lru.cxx


+ 5 - 4
panda/src/dxgsg9/lru.h

@@ -29,8 +29,9 @@
 #define LruMutexHolder(mutex)
 #endif
 
-#define MAXIMUM_LRU_PAGE_TYPES 8
-#define FRAME_MAXIMUM_PRIORITY_CHANGES 256
+
+static const int MAXIMUM_LRU_PAGE_TYPES = 8;
+static const int FRAME_MAXIMUM_PRIORITY_CHANGES = 256;
 
 
 class Lru;
@@ -199,8 +200,8 @@ public:
 
     int total_page_access;
 
-    int minimum_page_out_frames;           // number of frames required before page out
-    int maximum_page_updates_per_frame;    // unused pages
+    int minimum_page_out_frames; // number of frames required before page out
+    int maximum_page_updates_per_frame; // unused pages
 
     int start_priority_index;
     LruPage *start_update_lru_page;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません