Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
w
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
j
l
m
p
s
w
Typedefs
Enumerations
Enumerator
c
e
o
t
u
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
i
j
m
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
c
d
j
o
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
▼
Twilight Princess
►
About
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
docs
▼
include
►
c
►
d
▼
dolphin
►
amc
►
base
►
charPipeline
►
db
►
demo
►
gd
►
gf
►
gx
▼
os
►
OSAlarm.h
►
OSAlloc.h
►
OSCache.h
►
OSContext.h
►
OSDC.h
►
OSError.h
►
OSException.h
►
OSExec.h
►
OSFont.h
►
OSIC.h
►
OSInterrupt.h
►
OSL2.h
►
OSLC.h
►
OSMemory.h
►
OSMessage.h
►
OSModule.h
►
OSMutex.h
►
OSReboot.h
►
OSReset.h
►
OSResetSW.h
►
OSRtc.h
►
OSSemaphore.h
OSSerial.h
►
OSThread.h
OSTime.h
►
OSTimer.h
►
OSUtf.h
►
vi
►
ai.h
►
am.h
►
ar.h
►
ax.h
►
axart.h
►
axfx.h
►
card.h
►
db.h
►
demo.h
dolphin.h
►
dsp.h
►
dtk.h
►
dvd.h
►
exi.h
►
fake_tgmath.h
►
G2D.h
gd.h
gf.h
►
gx.h
►
hio.h
►
hw_regs.h
►
mcc.h
►
mix.h
►
mtx.h
►
os.h
►
pad.h
►
perf.h
►
seq.h
►
si.h
►
sp.h
►
syn.h
►
types.h
vi.h
►
f_ap
►
f_op
►
f_pc
►
JSystem
►
m_Do
►
REL
►
SSystem
►
TRK_MINNOW_DOLPHIN
►
Z2AudioLib
dol2asm.h
►
DynamicLink.h
►
global.h
►
src
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
OSTime.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_OSTIME_H_
2
#define _DOLPHIN_OSTIME_H_
3
4
#include <
dolphin/types.h
>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
// Time base frequency = 1/4 bus clock
11
#define OS_TIME_SPEED (OS_BUS_CLOCK / 4)
12
13
// OS time -> Real time
14
#define OS_TICKS_TO_SEC(x) ((x) / (OS_TIME_SPEED))
15
#define OS_TICKS_TO_MSEC(x) ((x) / (OS_TIME_SPEED / 1000))
16
#define OS_TICKS_TO_USEC(x) (((x)*8) / (OS_TIME_SPEED / 125000))
17
#define OS_TICKS_TO_NSEC(x) (((x)*8000) / (OS_TIME_SPEED / 125000))
18
19
// Real time -> OS time
20
#define OS_SEC_TO_TICKS(x) ((x) * (OS_TIME_SPEED))
21
#define OS_MSEC_TO_TICKS(x) ((x) * (OS_TIME_SPEED / 1000))
22
#define OS_USEC_TO_TICKS(x) ((x) * (OS_TIME_SPEED / 125000) / 8)
23
#define OS_NSEC_TO_TICKS(x) ((x) * (OS_TIME_SPEED / 125000) / 8000)
24
25
#define USEC_MAX 1000
26
#define MSEC_MAX 1000
27
#define MONTH_MAX 12
28
#define WEEK_DAY_MAX 7
29
#define YEAR_DAY_MAX 365
30
31
#define SECS_IN_MIN 60
32
#define SECS_IN_HOUR (SECS_IN_MIN * 60)
33
#define SECS_IN_DAY (SECS_IN_HOUR * 24)
34
#define SECS_IN_YEAR (SECS_IN_DAY * 365)
35
36
#define BIAS 0xB2575
37
38
#define __OSSystemTime (OSTime*)0x800030D8
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif
// _DOLPHIN_OSTIME_H_
types.h
include
dolphin
os
OSTime.h
Generated by
1.12.0