⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uitypes.h

📁 一个非常有用的开源代码
💻 H
字号:
/* ------------------------------------------------------------------------- Copyright (c) 2001, Dr Brian Gladman <brg@gladman.me.uk>, Worcester, UK. All rights reserved. TERMS Redistribution and use in source and binary forms, with or without  modification, are permitted subject to the following conditions:  1. Redistributions of source code must retain the above copyright      notice, this list of conditions and the following disclaimer.   2. Redistributions in binary form must reproduce the above copyright     notice, this list of conditions and the following disclaimer in the      documentation and/or other materials provided with the distribution.   3. The copyright holder's name must not be used to endorse or promote      any products derived from this software without his specific prior      written permission.  This software is provided 'as is' with no express or implied warranties  of correctness or fitness for purpose. ------------------------------------------------------------------------- Issue Date: 17/01/2002*/#ifndef _UITYPES_H#define _UITYPES_H#if defined __GNU_LIBRARY__#define HAS_INTTYPES_H#endif#if defined HAS_INTTYPES_H#include <inttypes.h>#define s_u32     u#define s_u64   ull#elif defined MODEL_32typedef unsigned char            uint8_t;typedef unsigned short int      uint16_t;typedef unsigned int            uint32_t;typedef unsigned long long int  uint64_t;#define s_u32     u#define s_u64   ull#elif defined MODEL_64typedef unsigned char            uint8_t;typedef unsigned short int      uint16_t;typedef unsigned int            uint32_t;typedef unsigned long int       uint64_t;#define s_u32     u#define s_u64    ul#elif defined(_MSC_VER)typedef unsigned  __int8         uint8_t;typedef unsigned __int16        uint16_t;typedef unsigned __int32        uint32_t;typedef unsigned __int64        uint64_t;#define s_u32    ui32#define s_u64    ui64#endif#define sfx_lo(x,y) x##y#define sfx_hi(x,y) sfx_lo(x,y)#ifdef DARWIN#define x_32(p)     sfx_hi(0x##p,)#define x_64(p)     sfx_hi(0x##p,ll)#else#define x_32(p)     sfx_hi(0x##p,s_u32)#define x_64(p)     sfx_hi(0x##p,s_u64)#endif // !DARWIN#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -