~ppsspp/ppsspp/ppsspp_1.3.0

« back to all changes in this revision

Viewing changes to Common/CommonTypes.h

  • Committer: Sérgio Benjamim
  • Date: 2017-01-02 00:12:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20170102001205-cxbta9za203nmjwm
1.3.0 source (from ppsspp_1.3.0-r160.p5.l1762.a165.t83~56~ubuntu16.04.1.tar.xz).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2003 Dolphin Project.
 
2
 
 
3
// This program is free software: you can redistribute it and/or modify
 
4
// it under the terms of the GNU General Public License as published by
 
5
// the Free Software Foundation, version 2.0 or later versions.
 
6
 
 
7
// This program is distributed in the hope that it will be useful,
 
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
// GNU General Public License 2.0 for more details.
 
11
 
 
12
// A copy of the GPL 2.0 should have been included with the program.
 
13
// If not, see http://www.gnu.org/licenses/
 
14
 
 
15
// Official SVN repository and contact information can be found at
 
16
// http://code.google.com/p/dolphin-emu/
 
17
 
 
18
 
 
19
// This header contains type definitions that are shared between the Dolphin core and
 
20
// other parts of the code. Any definitions that are only used by the core should be
 
21
// placed in "Common.h" instead.
 
22
 
 
23
#pragma once
 
24
 
 
25
#ifdef __arm__
 
26
#if !defined(ARM)
 
27
#define ARM
 
28
#endif
 
29
#endif
 
30
 
 
31
struct u24_be {
 
32
        unsigned char value[3]; 
 
33
 
 
34
        operator unsigned int(){
 
35
                return 0x00000000 | (value[0] << 16) | (value[1] << 8) | (value[2] << 0);
 
36
        }
 
37
};
 
38
 
 
39
#ifdef _WIN32
 
40
 
 
41
typedef unsigned __int8 u8;
 
42
typedef unsigned __int16 u16;
 
43
typedef unsigned __int32 u32;
 
44
typedef unsigned __int64 u64;
 
45
 
 
46
typedef signed __int8 s8;
 
47
typedef signed __int16 s16;
 
48
typedef signed __int32 s32;
 
49
typedef signed __int64 s64;
 
50
 
 
51
#else
 
52
 
 
53
typedef unsigned char u8;
 
54
typedef unsigned short u16;
 
55
typedef unsigned int u32;
 
56
typedef unsigned long long u64;
 
57
 
 
58
typedef signed char s8;
 
59
typedef signed short s16;
 
60
typedef signed int s32;
 
61
typedef signed long long s64;
 
62
 
 
63
#endif // _WIN32