Add copyright headers to macro files
[nasm/sigaren-mirror.git] / output / outlib.c
blobe1b61b181e5c131f4c49b226a3cfd90bafb943c8
1 /*
2 * libout.c
4 * Common routines for the output backends.
5 */
7 #include "compiler.h"
8 #include "nasm.h"
9 #include "output/outlib.h"
11 uint64_t realsize(enum out_type type, uint64_t size)
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;