[go: up one dir, main page]

File: upse-types.h

package info (click to toggle)
upse 1.0.0-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,328 kB
  • sloc: ansic: 5,722; sh: 3,391; makefile: 62
file content (48 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * UPSE: the unix playstation sound emulator.
 *
 * Filename: upse-types.h
 * Purpose: libupse: type aliases
 *
 * Copyright (c) 2007 William Pitcock <nenolod@sacredspiral.co.uk>
 *
 * UPSE is free software, released under the GNU General Public License,
 * version 2.
 *
 * A copy of the GNU General Public License, version 2, is included in
 * the UPSE source kit as COPYING.
 *
 * UPSE is offered without any warranty of any kind, explicit or implicit.
 */

#ifndef _UPSE__LIBUPSE__UPSE_TYPES_H__GUARD
#define _UPSE__LIBUPSE__UPSE_TYPES_H__GUARD

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <stdint.h>

#define INLINE inline

typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
typedef intptr_t sptr;

typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef uintptr_t uptr;

#ifdef __GNUC__
# define upse_packed_t	__attribute__ ((packed))
#else
# define upse_packed_t
#endif

#endif