summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-07 19:33:33 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-07 19:33:33 -0700
commit8af1d14863bb6ffad2c50b5275a848240c68c62e (patch)
tree0dc5406aafc64451f594ace900d3847e6559d9e1 /util.h
parent358991e7fef42ae206231aabfeee045e5214dbe4 (diff)
Add support for reading cartridge memory map from ROM database, though without EEPROM support for now
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index 780f538..85b0c8f 100644
--- a/util.h
+++ b/util.h
@@ -15,6 +15,8 @@ long file_size(FILE * f);
char * strip_ws(char * text);
//Inserts a null after the first word, returns a pointer to the second word
char * split_keyval(char * text);
+//Gets the smallest power of two that is >= a certain value, won't work for values > 0x80000000
+uint32_t nearest_pow2(uint32_t val);
//Should be called by main with the value of argv[0] for use by get_exe_dir
void set_exe_str(char * str);
//Returns the directory the executable is in