Previous 15994 Revisions Next

r6317 Friday 6th November, 2009 at 23:49:50 UTC by Nathan Woods
Removing osd_cpu.h, which was removed from MAME
[src/mess/audio]gmaster.c
[src/osd/windows]osd_cpu.h
[src/osd/winui]datafile.c mui_opts.h

src/osd/windows/osd_cpu.h
r6316r6317
1//============================================================
2//
3//  osd_cpu.h - Win32 CPU-specific data types
4//
5//  Copyright Nicola Salmoria and the MAME Team.
6//  Visit http://mamedev.org for licensing and usage restrictions.
7//
8//============================================================
9
10/*******************************************************************************
11*                                                                              *
12*   Define size independent data types and operations.                         *
13*                                                                              *
14*   The following types must be supported by all platforms:                    *
15*                                                                              *
16*   UINT8  - Unsigned 8-bit Integer     INT8  - Signed 8-bit integer           *
17*   UINT16 - Unsigned 16-bit Integer    INT16 - Signed 16-bit integer          *
18*   UINT32 - Unsigned 32-bit Integer    INT32 - Signed 32-bit integer          *
19*   UINT64 - Unsigned 64-bit Integer    INT64 - Signed 64-bit integer          *
20*                                                                              *
21*                                                                              *
22*   The macro names for the artithmatic operations are composed as follows:    *
23*                                                                              *
24*   XXX_R_A_B, where XXX - 3 letter operation code (ADD, SUB, etc.)            *
25*                    R   - The type of the result                              *
26*                    A   - The type of operand 1                               *
27*                    B   - The type of operand 2 (if binary operation)         *
28*                                                                              *
29*                    Each type is one of: U8,8,U16,16,U32,32,U64,64            *
30*                                                                              *
31*******************************************************************************/
32#pragma once
33
34#ifndef OSD_CPU_H
35#define OSD_CPU_H
36
37/* Combine two 32-bit integers into a 64-bit integer */
38#define COMBINE_64_32_32(A,B)     ((((UINT64)(A))<<32) | (UINT32)(B))
39#define COMBINE_U64_U32_U32(A,B)  COMBINE_64_32_32(A,B)
40
41/* Return upper 32 bits of a 64-bit integer */
42#define HI32_32_64(A)        (((UINT64)(A)) >> 32)
43#define HI32_U32_U64(A)        HI32_32_64(A)
44
45/* Return lower 32 bits of a 64-bit integer */
46#define LO32_32_64(A)        ((A) & 0xffffffff)
47#define LO32_U32_U64(A)        LO32_32_64(A)
48
49#define DIV_64_64_32(A,B)     ((A)/(B))
50#define DIV_U64_U64_U32(A,B)  ((A)/(UINT32)(B))
51
52#define MOD_32_64_32(A,B)     ((A)%(B))
53#define MOD_U32_U64_U32(A,B)  ((A)%(UINT32)(B))
54
55#define MUL_64_32_32(A,B)     ((A)*(INT64)(B))
56#define MUL_U64_U32_U32(A,B)  ((A)*(UINT64)(UINT32)(B))
57
58
59
60#endif   /* defined OSD_CPU_H */
src/osd/winui/datafile.c
r6316r6317
2828
2929// MAME/MAMEUI headers
3030#include "osdcomm.h"
31#include "osd_cpu.h"
3231#include "driver.h"
3332#include "datafile.h"
3433#include "mui_opts.h" // For MameUIGlobal()
src/osd/winui/mui_opts.h
r6316r6317
1515#define MUI_OPTS_H
1616
1717#include "osdcomm.h"
18#include "osd_cpu.h"
1918#include "options.h"
2019#include "inputseq.h" /* for input_seq definition */
2120#include <video.h> /* for MAX_SCREENS Definition*/
src/mess/audio/gmaster.c
r6316r6317
44
55#include <assert.h>
66#include <math.h>
7#include "osd_cpu.h"
87#include "driver.h"
98#include "streams.h"
109#include "mame.h"

Previous 15994 Revisions Next


© 1998-2018 The MESS Team