Mario Kart 64
Loading...
Searching...
No Matches
_Ldtob.c File Reference
#include "libultra_internal.h"
#include <macros.h>
#include <stdlib.h>
#include <string.h>
#include "printf.h"
Include dependency graph for _Ldtob.c:

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 }
 

Macro Definition Documentation

◆ _C2

#define _C2   1

◆ _CSIGN

#define _CSIGN   1

◆ _D0

#define _D0   0

◆ _D1

#define _D1   1 /* big-endian order */

◆ _D2

#define _D2   2

◆ _D3

#define _D3   3

◆ _DBIAS

#define _DBIAS   0x3ff

◆ _DFRAC

#define _DFRAC   ((1 << _DOFF) - 1)

◆ _DLONG

#define _DLONG   1

◆ _DMASK

#define _DMASK   (0x7fff & ~_DFRAC)

◆ _DMAX

#define _DMAX   ((1 << (15 - _DOFF)) - 1)

◆ _DNAN

#define _DNAN   (0x8000 | _DMAX << _DOFF | 1 << (_DOFF - 1))

◆ _DOFF

#define _DOFF   4

◆ _DSIGN

#define _DSIGN   0x8000

◆ _FBIAS

#define _FBIAS   0x7e

◆ _FOFF

#define _FOFF   7

◆ _FRND

#define _FRND   1

◆ _ILONG

#define _ILONG   0

◆ _LBIAS

#define _LBIAS   0x3ffe

◆ _LOFF

#define _LOFF   15

◆ _MBMAX

#define _MBMAX   8

◆ BUFF_LEN

#define BUFF_LEN   0x20

◆ FINITE

#define FINITE   -1

◆ INF

#define INF   1

◆ NAN

#define NAN   2

Function Documentation

◆ _Genld()

static void _Genld ( printf_struct * px,
u8 code,
u8 * p,
s16 nsig,
s16 xexp )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _Ldtob()

void _Ldtob ( printf_struct * args,
u8 type )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _Ldunscale()

static s16 _Ldunscale ( s16 * pex,
printf_struct * px )
static
Here is the caller graph for this function:

Variable Documentation

◆ D_80338670

const double D_80338670[] = { 10e0L, 10e1L, 10e3L, 10e7L, 10e15L, 10e31L, 10e63L, 10e127L, 10e255L }

◆ NAN

const int NAN[] = { 0x7f810000, 0x00000000, 0x00000000, 0x00000000 }