mame/src/lib/util/coreutil.h
Aaron Giles ee9f88963c Copyright cleanup:
- removed years from copyright notices
 - removed redundant (c) from copyright notices
 - updated "the MAME Team" to be "Nicola Salmoria and the MAME Team"
2008-01-06 00:47:40 +00:00

45 lines
1.2 KiB
C

/***************************************************************************
coreutil.h
Miscellaneous utility code
Copyright 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__ */