|
Mario Kart 64
|
#include "libultra_internal.h"#include <macros.h>#include <stdlib.h>#include <string.h>#include "printf.h"Macros | |
| #define | BUFF_LEN 0x20 |
| #define | _D0 0 |
| #define | _DBIAS 0x3ff |
| #define | _DLONG 1 |
| #define | _DOFF 4 |
| #define | _FBIAS 0x7e |
| #define | _FOFF 7 |
| #define | _FRND 1 |
| #define | _LBIAS 0x3ffe |
| #define | _LOFF 15 |
| #define | _C2 1 |
| #define | _CSIGN 1 |
| #define | _ILONG 0 |
| #define | _MBMAX 8 |
| #define | NAN 2 |
| #define | INF 1 |
| #define | FINITE -1 |
| #define | _DFRAC ((1 << _DOFF) - 1) |
| #define | _DMASK (0x7fff & ~_DFRAC) |
| #define | _DMAX ((1 << (15 - _DOFF)) - 1) |
| #define | _DNAN (0x8000 | _DMAX << _DOFF | 1 << (_DOFF - 1)) |
| #define | _DSIGN 0x8000 |
| #define | _D1 1 /* big-endian order */ |
| #define | _D2 2 |
| #define | _D3 3 |
Functions | |
| static s16 | _Ldunscale (s16 *, printf_struct *) |
| static void | _Genld (printf_struct *, u8, u8 *, s16, s16) |
| void | _Ldtob (printf_struct *args, u8 type) |
Variables | |
| const int | NAN [] = {0x7f810000, 0x00000000, 0x00000000, 0x00000000 } |
| const double | D_80338670 [] = { 10e0L, 10e1L, 10e3L, 10e7L, 10e15L, 10e31L, 10e63L, 10e127L, 10e255L } |
| #define _C2 1 |
| #define _CSIGN 1 |
| #define _D0 0 |
| #define _D2 2 |
| #define _D3 3 |
| #define _DBIAS 0x3ff |
| #define _DLONG 1 |
| #define _DOFF 4 |
| #define _DSIGN 0x8000 |
| #define _FBIAS 0x7e |
| #define _FOFF 7 |
| #define _FRND 1 |
| #define _ILONG 0 |
| #define _LBIAS 0x3ffe |
| #define _LOFF 15 |
| #define _MBMAX 8 |
| #define BUFF_LEN 0x20 |
| #define FINITE -1 |
| #define INF 1 |
| #define NAN 2 |
| void _Ldtob | ( | printf_struct * | args, |
| u8 | type ) |
|
static |
| const double D_80338670[] = { 10e0L, 10e1L, 10e3L, 10e7L, 10e15L, 10e31L, 10e63L, 10e127L, 10e255L } |
| const int NAN[] = {0x7f810000, 0x00000000, 0x00000000, 0x00000000 } |