LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
cc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2001, Swedish Institute of Computer Science.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the Institute nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * This file is part of the lwIP TCP/IP stack.
30 *
31 * Author: Adam Dunkels <adam@sics.se>
32 *
33 * $Id: cc.h,v 1.1 2007/03/19 20:10:27 tmbinc Exp $
34 */
35#ifndef __ARCH_CC_H__
36#define __ARCH_CC_H__
37
38typedef unsigned char u8_t;
39typedef signed char s8_t;
40typedef unsigned short u16_t;
41typedef signed short s16_t;
42typedef unsigned int u32_t;
43typedef signed int s32_t;
44typedef unsigned long u64_t;
45typedef signed long s64_t;
46
48
49#define U32_F "u"
50#define U16_F "hu"
51#define S32_F "d"
52#define S16_F "hd"
53#define X32_F "x"
54#define X16_F "hx"
55
56//#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
57#define PACK_STRUCT_FIELD(x) x
58#define PACK_STRUCT_STRUCT __attribute__((packed))
59#define PACK_STRUCT_BEGIN
60#define PACK_STRUCT_END
61
62#ifdef LWIP_DEBUG
63
64/* LW: forward declaration */
65int printf(const char *format, ...);
66
67/* Plaform specific diagnostic output */
68
69#endif/* LWIP_DEBUG */
70#define LWIP_PLATFORM_DIAG(x) { printf x; }
71#define LWIP_PLATFORM_ASSERT(x) { printf("\fline %d in %s\n", __LINE__, __FILE__); while(1); }
72
73#endif /* __ARCH_CC_H__ */
unsigned int u32_t
Definition: cc.h:42
signed short s16_t
Definition: cc.h:41
signed long s64_t
Definition: cc.h:45
unsigned long u64_t
Definition: cc.h:44
signed char s8_t
Definition: cc.h:39
unsigned char u8_t
Definition: cc.h:38
u64_t mem_ptr_t
Definition: cc.h:47
signed int s32_t
Definition: cc.h:43
unsigned short u16_t
Definition: cc.h:40