2002-05-01 04:51:32 +08:00
|
|
|
/* float.h header file for the floating-point constant module of
|
2007-10-20 05:42:29 +08:00
|
|
|
* the Netwide Assembler
|
2002-05-01 04:51:32 +08:00
|
|
|
*
|
|
|
|
* The Netwide Assembler is copyright (C) 1996 Simon Tatham and
|
|
|
|
* Julian Hall. All rights reserved. The software is
|
2007-12-29 22:44:23 +08:00
|
|
|
* redistributable under the license given in the file "LICENSE"
|
2002-05-01 04:51:32 +08:00
|
|
|
* distributed in the NASM archive.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NASM_FLOAT_H
|
|
|
|
#define NASM_FLOAT_H
|
|
|
|
|
2007-10-16 10:46:32 +08:00
|
|
|
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,
|
2005-01-16 06:15:51 +08:00
|
|
|
efunc error);
|
2007-10-17 05:40:27 +08:00
|
|
|
int float_option(const char *option);
|
2002-05-01 04:51:32 +08:00
|
|
|
|
|
|
|
#endif
|