Back to index

php5  5.3.10
php_hash_types.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Michael Wallner <mike@php.net>                               |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_hash_types.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_HASH_TYPES_H
00022 #define PHP_HASH_TYPES_H
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include "config.h"
00026 #else
00027 #ifndef PHP_WIN32
00028 #include "php_config.h"
00029 #endif
00030 #endif
00031 
00032 #ifndef PHP_WIN32
00033 #if SIZEOF_LONG == 8
00034 #define L64(x) x
00035 typedef unsigned long php_hash_uint64;
00036 #if SIZEOF_INT == 4
00037 typedef unsigned int php_hash_uint32;
00038 #elif SIZEOF_SHORT == 4
00039 typedef unsigned short php_hash_uint32;
00040 #else
00041 #error "Need a 32bit integer type"
00042 #endif
00043 #elif SIZEOF_LONG_LONG == 8
00044 #define L64(x) x##LL
00045 typedef unsigned long long php_hash_uint64;
00046 #if SIZEOF_INT == 4
00047 typedef unsigned int php_hash_uint32;
00048 #elif SIZEOF_LONG == 4
00049 typedef unsigned long php_hash_uint32;
00050 #else
00051 #error "Need a 32bit integer type"
00052 #endif
00053 #else
00054 #error "Need a 64bit integer type"
00055 #endif
00056 #else
00057 #define L64(x) x##i64
00058 typedef unsigned __int64 php_hash_uint64;
00059 typedef unsigned __int32 php_hash_uint32;
00060 #endif
00061 
00062 #endif
00063 
00064 /*
00065  * Local variables:
00066  * tab-width: 4
00067  * c-basic-offset: 4
00068  * End:
00069  * vim600: sw=4 ts=4 fdm=marker
00070  * vim<600: sw=4 ts=4
00071  */