php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_float.c
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
5 | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 2.00 of the Zend license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.zend.com/license/2_00.txt. |
11 | If you did not receive a copy of the Zend license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@zend.com so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Authors: Christian Seiler <chris_se@gmx.net> |
16 +----------------------------------------------------------------------+
17*/
18
19#include "zend.h"
20#include "zend_compile.h"
21#include "zend_float.h"
22
23ZEND_API void zend_init_fpu(void) /* {{{ */
24{
25#if XPFPA_HAVE_CW
27
28 if (!EG(saved_fpu_cw_ptr)) {
29 EG(saved_fpu_cw_ptr) = (void*)&EG(saved_fpu_cw);
30 }
31 XPFPA_STORE_CW(EG(saved_fpu_cw_ptr));
33#else
34 EG(saved_fpu_cw_ptr) = NULL;
35#endif
36}
37/* }}} */
38
39ZEND_API void zend_shutdown_fpu(void) /* {{{ */
40{
41#if XPFPA_HAVE_CW
42 if (EG(saved_fpu_cw_ptr)) {
43 XPFPA_RESTORE_CW(EG(saved_fpu_cw_ptr));
44 }
45#endif
46 EG(saved_fpu_cw_ptr) = NULL;
47}
48/* }}} */
49
50ZEND_API void zend_ensure_fpu_mode(void) /* {{{ */
51{
53
55}
56/* }}} */
#define NULL
Definition gdcache.h:45
#define ZEND_API
ZEND_API void zend_shutdown_fpu(void)
Definition zend_float.c:39
ZEND_API void zend_init_fpu(void)
Definition zend_float.c:23
ZEND_API void zend_ensure_fpu_mode(void)
Definition zend_float.c:50
#define XPFPA_RESTORE_CW(variable)
Definition zend_float.h:406
#define XPFPA_SWITCH_DOUBLE()
Definition zend_float.h:407
#define XPFPA_DECLARE
Definition zend_float.h:402
#define XPFPA_STORE_CW(variable)
Definition zend_float.h:405
#define EG(v)