arm-gcc.h
来自「基于组件方式开发操作系统的OSKIT源代码」· C头文件 代码 · 共 80 行
H
80 行
/* $NetBSD: arm-gcc.h,v 1.2 1998/01/06 00:06:10 perry Exp $ *//*-------------------------------------------------------------------------------One of either `BIGENDIAN' or `LITTLEENDIAN' must be defined.-------------------------------------------------------------------------------*/#define LITTLEENDIAN/*-------------------------------------------------------------------------------`BIT64' can be defined to indicate that 64-bit integer types are supportedby the compiler.-------------------------------------------------------------------------------*/#define BITS64/*-------------------------------------------------------------------------------Each of the following `typedef's defines the most convenient type that holdsintegers of at least as many bits as specified. For example, `uint8' shouldbe the most convenient type that can hold unsigned integers of as many as8 bits. The `flag' type must be able to hold either a 0 or 1. For mostimplementations of C, `flag', `uint8', and `int8' should all be `typedef'edto the same as `int'.-------------------------------------------------------------------------------*/typedef char flag;typedef unsigned char uint8;typedef signed char int8;typedef int uint16;typedef int int16;typedef unsigned int uint32;typedef signed int int32;#ifdef BITS64typedef unsigned long long int bits64;typedef signed long long int sbits64;#endif/*-------------------------------------------------------------------------------Each of the following `typedef's defines a type that holds integersof _exactly_ the number of bits specified. For instance, for mostimplementation of C, `bits16' and `sbits16' should be `typedef'ed to`unsigned short int' and `signed short int' (or `short int'), respectively.-------------------------------------------------------------------------------*/typedef unsigned char bits8;typedef signed char sbits8;typedef unsigned short int bits16;typedef signed short int sbits16;typedef unsigned int bits32;typedef signed int sbits32;#ifdef BITS64typedef unsigned long long int uint64;typedef signed long long int int64;#endif/* * Macros to define functions with the GCC expected names */#define float32_add __addsf3#define float64_add __adddf3#define float32_sub __subsf3#define float64_sub __subdf3#define float32_mul __mulsf3#define float64_mul __muldf3#define float32_div __divsf3#define float64_div __divdf3#define int32_to_float32 __floatsisf#define int32_to_float64 __floatsidf#define float32_to_int32_round_to_zero __fixsfsi#define float64_to_int32_round_to_zero __fixdfsi#define float32_to_uint32_round_to_zero __fixunssfsi#define float64_to_uint32_round_to_zero __fixunsdfsi#define float32_to_float64 __extendsfdf2#define float64_to_float32 __truncdfsf2
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?