summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/coreutil.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2007-12-17 15:19:59 +0000
committer Aaron Giles <aaron@aarongiles.com>2007-12-17 15:19:59 +0000
commit7b77f1218624ea26dbb2efd85a19f795f5d4e02e (patch)
tree19209304095572b4fd61c2a2d6a5aa75c4e471ad /src/lib/util/coreutil.h
parent3da7f476068b3ffef713218ba2fc1bd5030f2c38 (diff)
Initial checkin of MAME 0.121.mame0121
Diffstat (limited to 'src/lib/util/coreutil.h')
-rw-r--r--src/lib/util/coreutil.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/util/coreutil.h b/src/lib/util/coreutil.h
new file mode 100644
index 00000000000..e251d61ca80
--- /dev/null
+++ b/src/lib/util/coreutil.h
@@ -0,0 +1,44 @@
+/***************************************************************************
+
+ coreutil.h
+
+ Miscellaneous utility code
+
+ Copyright (c) 1996-2007, Nicola Salmoria and the MAME Team.
+ Visit http://mamedev.org for licensing and usage restrictions.
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __COREUTIL_H__
+#define __COREUTIL_H__
+
+#include "osdcomm.h"
+
+
+/***************************************************************************
+ BINARY CODED DECIMAL HELPERS
+***************************************************************************/
+
+int bcd_adjust(int value);
+UINT32 dec_2_bcd(UINT32 a);
+UINT32 bcd_2_dec(UINT32 a);
+
+
+/***************************************************************************
+ GREGORIAN CALENDAR HELPERS
+***************************************************************************/
+
+int gregorian_is_leap_year(int year);
+int gregorian_days_in_month(int month, int year);
+
+
+/***************************************************************************
+ MISC
+***************************************************************************/
+
+void rand_memory(void *memory, size_t length);
+
+
+#endif /* __COREUTIL_H__ */