php-src/ext/standard/php_lcg.h

43 lines
1.5 KiB
C
Raw Normal View History

1999-08-29 20:12:12 +00:00
/*
+----------------------------------------------------------------------+
| PHP version 4.0 |
+----------------------------------------------------------------------+
2001-02-26 06:11:02 +00:00
| Copyright (c) 1997-2001 The PHP Group |
1999-08-29 20:12:12 +00:00
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
1999-08-29 20:12:12 +00:00
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_02.txt. |
1999-08-29 20:12:12 +00:00
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
2000-07-10 10:09:15 +00:00
| Authors: Sascha Schumann <sascha@schumann.cx> |
1999-08-29 20:12:12 +00:00
+----------------------------------------------------------------------+
*/
/* $Id$ */
1999-08-29 20:12:12 +00:00
#ifndef PHP_LCG_H
#define PHP_LCG_H
#include "ext/standard/basic_functions.h"
1999-08-29 20:12:12 +00:00
typedef struct {
php_int32 s1;
php_int32 s2;
1999-08-29 20:12:12 +00:00
} php_lcg_globals;
2001-08-06 03:50:52 +00:00
double php_combined_lcg(TSRMLS_D);
1999-08-29 20:12:12 +00:00
PHP_FUNCTION(lcg_value);
#ifdef ZTS
PHP_MINIT_FUNCTION(lcg);
#define LCG(v) TSRMG(lcg_globals_id, php_lcg_globals *, v)
1999-08-29 20:12:12 +00:00
#else
PHP_RINIT_FUNCTION(lcg);
1999-08-29 20:12:12 +00:00
#define LCG(v) (lcg_globals.v)
#endif
#endif