Debian Codegraph @

3rdparty/dissection/src/qd/fpu.h

raw
1 /*
2 * include/fpu.h
3 *
4 * This work was supported by the Director, Office of Science, Division
5 * of Mathematical, Information, and Computational Sciences of the
6 * U.S. Department of Energy under contract number DE-AC03-76SF00098.
7 *
8 * Copyright (c) 2001
9 *
10 * Contains functions to set and restore the round-to-double flag in the
11 * control word of a x86 FPU. The algorithms in the double-double and
12 * quad-double package does not function with the extended mode found in
13 * these FPU.
14 */
15 #ifndef _QD_FPU_H
16 #define _QD_FPU_H
17
18 #include <qd/qd_config.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /*
25 * Set the round-to-double flag, and save the old control word in old_cw.
26 * If old_cw is NULL, the old control word is not saved.
27 */
28 QD_API void fpu_fix_start(unsigned int *old_cw);
29
30 /*
31 * Restore the control word.
32 */
33 QD_API void fpu_fix_end(unsigned int *old_cw);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* _QD_FPU_H */