#include "print.h"
#include "common/digits.h"
#include <inttypes.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "user/common/file.h"
Go to the source code of this file.
|
| static void | _print_hexa (int sign, int exp, int dec, unsigned char const *mant, size_t mant_dig, _format_ctx_t *ctx) |
| |
| static void | _print_fp (int sign, int exp, int dec, unsigned char const *mant, size_t mant_dig, _format_ctx_t *ctx) |
| |
| static void | _print_double (double value, _format_ctx_t *ctx) |
| |
| static void | _print_ldouble (long double value, _format_ctx_t *ctx) |
| |
| static void | _int_format (intmax_t value, _format_ctx_t *ctx) |
| |
| static void | _print_integer (imaxdiv_t div, _format_ctx_t *ctx) |
| |
| static void | _print_string (const char *s, _format_ctx_t *ctx) |
| |
| const char * | _print (const char *spec, _format_ctx_t *ctx) |
| |
◆ _DBL_SIGN
| #define _DBL_SIGN |
( |
|
bytes | ) |
(((unsigned)bytes[7] & 0x80) >> 7) |
◆ _DBL_DEC
| #define _DBL_DEC |
( |
|
bytes | ) |
((_DBL_EXP(bytes) > 0) ? 1 : 0) |
◆ _DBL_EXP
| #define _DBL_EXP |
( |
|
bytes | ) |
((((unsigned)bytes[7] & 0x7f) << 4) | (((unsigned)bytes[6] & 0xf0) >> 4)) |
◆ _DBL_BIAS
◆ _DBL_MANT_START
| #define _DBL_MANT_START |
( |
|
bytes | ) |
(bytes + 6) |
◆ _LDBL_SIGN
| #define _LDBL_SIGN |
( |
|
bytes | ) |
(((unsigned)bytes[7] & 0x80) >> 7) |
◆ _LDBL_DEC
| #define _LDBL_DEC |
( |
|
bytes | ) |
((_LDBL_EXP(bytes) > 0) ? 1 : 0) |
◆ _LDBL_EXP
| #define _LDBL_EXP |
( |
|
bytes | ) |
((((unsigned)bytes[7] & 0x7f) << 4) | (((unsigned)bytes[6] & 0xf0) >> 4)) |
◆ _LDBL_BIAS
◆ _LDBL_MANT_START
| #define _LDBL_MANT_START |
( |
|
bytes | ) |
(bytes + 6) |
◆ _PRINT_PUT
| #define _PRINT_PUT |
( |
|
ctx, |
|
|
|
x |
|
) |
| |
Value: ({ \
if ((ctx)->totalChars < (ctx)->maxChars) \
{ \
if ((ctx)->stream !=
NULL) \
{ \
putc(character, (ctx)->stream); \
} \
else \
{ \
(ctx)->
buffer[(ctx)->totalChars] = character; \
} \
} \
++((ctx)->totalChars); \
})
#define NULL
Pointer error value.
EFI_PHYSICAL_ADDRESS buffer
Definition at line 53 of file print.c.
◆ _print_hexa()
| static void _print_hexa |
( |
int |
sign, |
|
|
int |
exp, |
|
|
int |
dec, |
|
|
unsigned char const * |
mant, |
|
|
size_t |
mant_dig, |
|
|
_format_ctx_t * |
ctx |
|
) |
| |
|
static |
◆ _print_fp()
| static void _print_fp |
( |
int |
sign, |
|
|
int |
exp, |
|
|
int |
dec, |
|
|
unsigned char const * |
mant, |
|
|
size_t |
mant_dig, |
|
|
_format_ctx_t * |
ctx |
|
) |
| |
|
static |
◆ _print_double()
◆ _print_ldouble()
| static void _print_ldouble |
( |
long double |
value, |
|
|
_format_ctx_t * |
ctx |
|
) |
| |
|
static |
◆ _int_format()
◆ _print_integer()
◆ _print_string()
| static void _print_string |
( |
const char * |
s, |
|
|
_format_ctx_t * |
ctx |
|
) |
| |
|
static |
◆ _print()