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

📄 vsprintf.h

📁 bootloader源代码
💻 H
字号:
/***************************************** Copyright (c) 2001-2002  Sigma Designs, Inc. All Rights Reserved Proprietary and Confidential *****************************************//* This file is part of the boot loader *//* * vsprintf.h * * This is the porting of <stdarg.h> for ARM processor * also including function prototypes defined in vsprintf.c */#ifndef __BOOTLOADER_VSPRINTF_H#define __BOOTLOADER_VSPRINTF_H/* Define __gnuc_va_list.  */typedef void *__gnuc_va_list;typedef __gnuc_va_list va_list;/* Amount of space required in an argument list for an arg of type TYPE.   TYPE may alternatively be an expression whose type is used.  */#define __va_rounded_size(TYPE)  \  (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))#define va_start(AP, LASTARG) 						\ (AP = ((__gnuc_va_list) __builtin_next_arg (LASTARG)))#undef va_endvoid va_end (__gnuc_va_list);		/* Defined in libgcc.a */#define va_end(AP)	((void)0)/* We cast to void * and then to TYPE * because this avoids   a warning about increasing the alignment requirement.  */#if (defined (__arm__) && ! defined (__ARMEB__)) || defined (__i386__) || defined (__i860__) || defined (__ns32000__) || defined (__vax__)/* This is for little-endian machines; small args are padded upward.  */#define va_arg(AP, TYPE)						\ (AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)),	\  *((TYPE *) (void *) ((char *) (AP) - __va_rounded_size (TYPE))))#else /* big-endian *//* This is for big-endian machines; small args are padded downward.  */#define va_arg(AP, TYPE)						\ (AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)),	\  *((TYPE *) (void *) ((char *) (AP)					\		       - ((sizeof (TYPE) < __va_rounded_size (char)	\			   ? sizeof (TYPE) : __va_rounded_size (TYPE))))))#endif /* big-endian *//* Copy __gnuc_va_list into another variable of this type.  */#define __va_copy(dest, src) (dest) = (src)/* function prototypes */		int sprintf(char * buf, const char *fmt, ...);int vsprintf(char *buf, const char *fmt, va_list args);#endif 

⌨️ 快捷键说明

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