repo.or.cz
/
nasm
/
perl-rewrite.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
BR 2541252: Fix issues in insns.dat, mostly related to LZCNT and POPCNT
[nasm/perl-rewrite.git]
/
outlib.c
blob
cf687216f1ec387c0e2fa3c0516e40314cadaa51
1
/*
2
* libout.c
3
*
4
* Common routines for the output backends.
5
*/
6
7
#include
"compiler.h"
8
#include
"nasm.h"
9
#include
"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
}