Browse Source

Some formatting changes to adhere to Panda coding style guide.

aignacio_sf 20 years ago
parent
commit
9a84565fd8
2 changed files with 320 additions and 367 deletions
  1. 315 363
      panda/src/dxgsg9/lru.cxx
  2. 5 4
      panda/src/dxgsg9/lru.h

File diff suppressed because it is too large
+ 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;

Some files were not shown because too many files changed in this diff