#include <stdarg.h>
#include <string.h>
Go to the source code of this file.
|
#define | do_div(n, base) |
|
#define | is_digit(c) ((c) >= '0' && (c) <= '9') |
|
#define | LEFT 16 /* left justified */ |
|
#define | PLUS 4 /* show plus */ |
|
#define | SIGN 2 /* unsigned/signed long */ |
|
#define | SMALL 64 /* use 'abcdef' instead of 'ABCDEF' */ |
|
#define | SPACE 8 /* space if plus */ |
|
#define | SPECIAL 32 /* 0x */ |
|
#define | ZEROPAD 1 /* pad with zero */ |
|
◆ do_div
#define do_div |
( |
|
n, |
|
|
|
base |
|
) |
| |
Value:({ \
int __res; \
__asm__("divl %4":"=a" (n),"=d" (__res):"0" (n),"1" (0),"r" (base)); \
__res; })
Definition at line 56 of file vsprintf.c.
◆ is_digit
#define is_digit |
( |
|
c | ) |
((c) >= '0' && (c) <= '9') |
◆ LEFT
#define LEFT 16 /* left justified */ |
◆ PLUS
#define PLUS 4 /* show plus */ |
◆ SIGN
#define SIGN 2 /* unsigned/signed long */ |
◆ SMALL
#define SMALL 64 /* use 'abcdef' instead of 'ABCDEF' */ |
◆ SPACE
#define SPACE 8 /* space if plus */ |
◆ SPECIAL
#define SPECIAL 32 /* 0x */ |
◆ ZEROPAD
#define ZEROPAD 1 /* pad with zero */ |
◆ vsprintf()