Browse Subversion Repository
Contents of /branches/mty-makai/mtytypes.h
Parent Directory
| Revision Log
Revision 192 -
( show annotations)
( download)
( as text)
Mon May 26 06:29:35 2008 UTC
(15 years, 10 months ago)
by notanpe
File MIME type: text/x-chdr
File size: 1207 byte(s)
シーズン 2 に向けて
| 1 |
/*********************************************************************** |
| 2 |
* |
| 3 |
* file: mtytypes.h |
| 4 |
* |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef MTYTYPES_H__ |
| 8 |
#define MTYTYPES_H__ |
| 9 |
|
| 10 |
#define C64 "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" |
| 11 |
|
| 12 |
typedef signed char CODE_T; |
| 13 |
|
| 14 |
#ifdef __GNUC__ |
| 15 |
|
| 16 |
#define NORETURN void __attribute__((noreturn)) |
| 17 |
|
| 18 |
#include <inttypes.h> |
| 19 |
#define ALIGN_PREFIX(n) |
| 20 |
#define ALIGN_SUFFIX(n) __attribute__ ((aligned(n))) |
| 21 |
#ifdef __SSE__ |
| 22 |
typedef unsigned DQWORD_T __attribute__ ((mode(V4SI))); |
| 23 |
#endif |
| 24 |
|
| 25 |
#else |
| 26 |
|
| 27 |
#define NORETURN __declspec(noreturn) void |
| 28 |
|
| 29 |
#include <intrin.h> |
| 30 |
#include <xmmintrin.h> |
| 31 |
#define ALIGN_PREFIX(n) __declspec(align(16)) |
| 32 |
#define ALIGN_SUFFIX(n) |
| 33 |
|
| 34 |
/* inttypes.h |
| 35 |
MSVC ŠÂ‹«‚ł͖¢’è‹` */ |
| 36 |
|
| 37 |
typedef __int8 int8_t; |
| 38 |
typedef __int16 int16_t; |
| 39 |
typedef __int32 int32_t; |
| 40 |
typedef unsigned __int8 uint8_t; |
| 41 |
typedef unsigned __int16 uint16_t; |
| 42 |
typedef unsigned __int32 uint32_t; |
| 43 |
typedef unsigned __int64 uint64_t; |
| 44 |
|
| 45 |
typedef __m128 DQWORD_T; |
| 46 |
|
| 47 |
#endif |
| 48 |
|
| 49 |
/* CPUID capabilities */ |
| 50 |
#define CPUID_FPU (1 << 0) |
| 51 |
#define CPUID_CMOV (1 << 15) |
| 52 |
#define CPUID_MMX (1 << 23) |
| 53 |
#define CPUID_SSE (1 << 25) |
| 54 |
#define CPUID_SSE2 (1 << 26) |
| 55 |
|
| 56 |
#endif /* MTYTYPES_H__ */ |
| 57 |
|
| 58 |
/* |
| 59 |
* Local Variables: |
| 60 |
* tab-width: 4 |
| 61 |
* End: |
| 62 |
* |
| 63 |
* EOF */ |
Properties
| svn:eol-style |
native
|
| svn:keywords |
Author Date Id Rev URL
|
|