fenv.h (f365db00e515ef3f259a968aa46af64507907ade) fenv.h (15d3b4db617f3e2e0d03be5a89b5af6e698b259e)
1/*-
2 * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 29 unchanged lines hidden (view full) ---

38#define FE_INVALID 0x0001
39#define FE_DIVBYZERO 0x0002
40#define FE_OVERFLOW 0x0004
41#define FE_UNDERFLOW 0x0008
42#define FE_INEXACT 0x0010
43#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \
44 FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
45
1/*-
2 * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 29 unchanged lines hidden (view full) ---

38#define FE_INVALID 0x0001
39#define FE_DIVBYZERO 0x0002
40#define FE_OVERFLOW 0x0004
41#define FE_UNDERFLOW 0x0008
42#define FE_INEXACT 0x0010
43#define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | \
44 FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
45
46/* Rounding modes */
47#define FE_TONEAREST 0x0000
48#define FE_TOWARDZERO 0x0001
49#define FE_UPWARD 0x0002
50#define FE_DOWNWARD 0x0003
51#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
52 FE_UPWARD | FE_TOWARDZERO)
46__BEGIN_DECLS
47
48/* Default floating-point environment */
49extern const fenv_t __fe_dfl_env;
50#define FE_DFL_ENV (&__fe_dfl_env)
51
52/* We need to be able to map status flag positions to mask flag positions */
53#define _FPUSW_SHIFT 16

--- 147 unchanged lines hidden ---
53__BEGIN_DECLS
54
55/* Default floating-point environment */
56extern const fenv_t __fe_dfl_env;
57#define FE_DFL_ENV (&__fe_dfl_env)
58
59/* We need to be able to map status flag positions to mask flag positions */
60#define _FPUSW_SHIFT 16

--- 147 unchanged lines hidden ---