Back to index

php5  5.3.10
Defines | Functions
zend_float.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define XPFPA_DECLARE   /* NOP */
#define XPFPA_HAVE_CW   0
#define XPFPA_CW_DATATYPE   unsigned int
#define XPFPA_STORE_CW(variable)   /* NOP */
#define XPFPA_RESTORE_CW(variable)   /* NOP */
#define XPFPA_SWITCH_DOUBLE()   /* NOP */
#define XPFPA_SWITCH_SINGLE()   /* NOP */
#define XPFPA_SWITCH_DOUBLE_EXTENDED()   /* NOP */
#define XPFPA_RESTORE()   /* NOP */
#define XPFPA_RETURN_DOUBLE(val)   return (val)
#define XPFPA_RETURN_SINGLE(val)   return (val)
#define XPFPA_RETURN_DOUBLE_EXTENDED(val)   return (val)

Functions

ZEND_API void zend_init_fpu (TSRMLS_D)
ZEND_API void zend_shutdown_fpu (TSRMLS_D)
ZEND_API void zend_ensure_fpu_mode (TSRMLS_D)

Define Documentation

#define XPFPA_CW_DATATYPE   unsigned int

Definition at line 411 of file zend_float.h.

#define XPFPA_DECLARE   /* NOP */

Definition at line 409 of file zend_float.h.

#define XPFPA_HAVE_CW   0

Definition at line 410 of file zend_float.h.

#define XPFPA_RESTORE ( )    /* NOP */

Definition at line 417 of file zend_float.h.

#define XPFPA_RESTORE_CW (   variable)    /* NOP */

Definition at line 413 of file zend_float.h.

#define XPFPA_RETURN_DOUBLE (   val)    return (val)

Definition at line 418 of file zend_float.h.

#define XPFPA_RETURN_DOUBLE_EXTENDED (   val)    return (val)

Definition at line 420 of file zend_float.h.

#define XPFPA_RETURN_SINGLE (   val)    return (val)

Definition at line 419 of file zend_float.h.

#define XPFPA_STORE_CW (   variable)    /* NOP */

Definition at line 412 of file zend_float.h.

#define XPFPA_SWITCH_DOUBLE ( )    /* NOP */

Definition at line 414 of file zend_float.h.

#define XPFPA_SWITCH_DOUBLE_EXTENDED ( )    /* NOP */

Definition at line 416 of file zend_float.h.

#define XPFPA_SWITCH_SINGLE ( )    /* NOP */

Definition at line 415 of file zend_float.h.


Function Documentation

Definition at line 58 of file zend_float.c.

Definition at line 25 of file zend_float.c.

{
#if XPFPA_HAVE_CW
       XPFPA_DECLARE
       
       if (!EG(saved_fpu_cw)) {
              EG(saved_fpu_cw) = emalloc(sizeof(XPFPA_CW_DATATYPE));
       }
       XPFPA_STORE_CW(EG(saved_fpu_cw));
       XPFPA_SWITCH_DOUBLE();
#else
       if (EG(saved_fpu_cw)) {
              efree(EG(saved_fpu_cw));
       }
       EG(saved_fpu_cw) = NULL;
#endif
}

Here is the caller graph for this function:

Definition at line 44 of file zend_float.c.

{
#if XPFPA_HAVE_CW
       if (EG(saved_fpu_cw)) {
              XPFPA_RESTORE_CW(EG(saved_fpu_cw));
       }
#endif
       if (EG(saved_fpu_cw)) {
              efree(EG(saved_fpu_cw));
              EG(saved_fpu_cw) = NULL;
       }
}

Here is the caller graph for this function: