-/* Copyright (c) 2009 The Regents of the University of California.
- * See the COPYRIGHT files at the top of this source tree for full
+/* Copyright (c) 2009 The Regents of the University of California.
+ * See the COPYRIGHT files at the top of this source tree for full
* license information.
- *
- * Kevin Klues <klueska@cs.berkeley.edu>
+ *
+ * Kevin Klues <klueska@cs.berkeley.edu>
*/
-
-#ifndef ROS_KERN_COLORED_CACHES_H
-#define ROS_KERN_COLORED_CACHES_H
+
+#pragma once
#include <ros/common.h>
#include <error.h>
size_t sz_k;
size_t clsz;
uint8_t* free_colors_map;
-
+
//Added as optimization (derived from above);
size_t num_colors;
} cache_t;
uint8_t* cache_colors_map_alloc();
void cache_colors_map_free(uint8_t* colors_map);
error_t cache_color_alloc(cache_t* c, uint8_t* colors_map);
-error_t cache_color_alloc_specific(size_t color, cache_t* c,
+error_t cache_color_alloc_specific(size_t color, cache_t* c,
uint8_t* colors_map);
void cache_color_free(cache_t* c, uint8_t* colors_map);
void cache_color_free_specific(size_t color, cache_t* c, uint8_t* colors_map);
inline size_t get_cache_lines_per_way(cache_t *c);
inline size_t get_cache_pages_per_way(cache_t *c);
inline size_t get_cache_num_page_colors(cache_t *c);
-
-#endif // ROS_KERN_COLORED_CACHES_H
-