1 /*---------------------------------------------------------------------------*
2   Project: Revolution DSP ADPCM encoder
3   File:    Types.h
4 
5   Copyright (C)2001-2006 Nintendo  All Rights Reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Log: Types.h,v $
14   Revision 1.2  02/09/2006 07:07:35  aka
15   Changed copyright.
16 
17   Revision 1.1  11/04/2005 06:11:37  aka
18   Imported from Dolphin tree.
19 
20     1     5/20/01 11:51p Eugene
21     DSPADPCM converter tool, command-line. Converts WAV or AIFF files into
22     DSP-ADPCM-formatted files, with a 96-byte DSP paramblock header (see
23     DSPADPCM document).
24 
25     Illustrates use of DSPTOOL DLL, which provides the DSP-ADPCM codec
26     functions.
27 
28     Source code is provided to developers (eventually). This is an MSVC++
29     project (bleah)
30 
31     2     3/04/99 2:18p Tianli01
32     testing
33 
34     1     3/04/99 2:18p Tianli01
35     initial check-in for testing
36 
37     1     12/15/98 10:05p Shiki
38 
39   Change History:
40     12/10/1998  Shiki Okasaka   Revised to reflect the coding guidelines
41     12/04/1998  Shiki Okasaka   Created
42 
43   $NoKeywords: $
44  *---------------------------------------------------------------------------*/
45 
46 #ifndef __TYPES_H__
47 #define __TYPES_H__
48 
49 #ifdef  __MWERKS__
50 // for MetroWerks compiler
51 typedef char                s8;
52 typedef short               s16;
53 typedef long                s32;
54 typedef long long           s64;
55 typedef unsigned char       u8;
56 typedef unsigned short      u16;
57 typedef unsigned long       u32;
58 typedef unsigned long long  u64;
59 typedef float               f32;
60 #else   // __MWERKS__
61 #ifndef WIN32
62 // for GNU compiler, etc.
63 typedef char                s8;
64 typedef short               s16;
65 typedef long                s32;
66 typedef long long           s64;
67 typedef unsigned char       u8;
68 typedef unsigned short      u16;
69 typedef unsigned long       u32;
70 typedef unsigned long long  u64;
71 #else   // WIN32
72 // for Microsoft compiler
73 typedef __int8              s8;
74 typedef __int16             s16;
75 typedef __int32             s32;
76 typedef __int64             s64;
77 typedef unsigned __int8     u8;
78 typedef unsigned __int16    u16;
79 typedef unsigned __int32    u32;
80 typedef unsigned __int64    u64;
81 #endif  // WIN32
82 #endif  // __MWERKS__
83 
84 typedef void*               Ptr;
85 //typedef u32                 BOOL;
86 //typedef u8                  BYTE;
87 
88 #define TRUE                1
89 #define FALSE               0
90 
91 #endif  // __TYPES_H__
92