repo.or.cz
/
nasm
/
sigaren-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add copyright headers to macro files
[nasm/sigaren-mirror.git]
/
output
/
outlib.c
blob
e1b61b181e5c131f4c49b226a3cfd90bafb943c8
1
/*
2
* libout.c
3
*
4
* Common routines for the output backends.
5
*/
6
7
#include
"compiler.h"
8
#include
"nasm.h"
9
#include
"output/outlib.h"
10
11
uint64_t
realsize
(
enum
out_type type
,
uint64_t
size
)
12
{
13
switch
(
type
) {
14
case
OUT_REL2ADR
:
15
return
2
;
16
case
OUT_REL4ADR
:
17
return
4
;
18
case
OUT_REL8ADR
:
19
return
8
;
20
default
:
21
return
size
;
22
}
23
}