summaryrefslogtreecommitdiff
path: root/float.h
blob: 40305bc1db154e2e2d53363ee57413d748350f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* float.h   header file for the floating-point constant module of
 *	     the Netwide Assembler
 *
 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
 * Julian Hall. All rights reserved. The software is
 * redistributable under the license given in the file "LICENSE"
 * distributed in the NASM archive.
 */

#ifndef NASM_FLOAT_H
#define NASM_FLOAT_H

enum float_round {
    FLOAT_RC_NEAR,
    FLOAT_RC_ZERO,
    FLOAT_RC_DOWN,
    FLOAT_RC_UP,
};

int float_const(const char *string, int sign, uint8_t *result, int bytes,
                efunc error);
int float_option(const char *option);

#endif