File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / hash / php_hash_types.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:56 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

    1: /*
    2:    +----------------------------------------------------------------------+
    3:    | PHP Version 5                                                        |
    4:    +----------------------------------------------------------------------+
    5:    | Copyright (c) 1997-2012 The PHP Group                                |
    6:    +----------------------------------------------------------------------+
    7:    | This source file is subject to version 3.01 of the PHP 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.php.net/license/3_01.txt                                  |
   11:    | If you did not receive a copy of the PHP license and are unable to   |
   12:    | obtain it through the world-wide-web, please send a note to          |
   13:    | license@php.net so we can mail you a copy immediately.               |
   14:    +----------------------------------------------------------------------+
   15:    | Author: Michael Wallner <mike@php.net>                               |
   16:    +----------------------------------------------------------------------+
   17: */
   18: 
   19: /* $Id: php_hash_types.h,v 1.1.1.1 2012/02/21 23:47:56 misho Exp $ */
   20: 
   21: #ifndef PHP_HASH_TYPES_H
   22: #define PHP_HASH_TYPES_H
   23: 
   24: #ifdef HAVE_CONFIG_H
   25: #include "config.h"
   26: #else
   27: #ifndef PHP_WIN32
   28: #include "php_config.h"
   29: #endif
   30: #endif
   31: 
   32: #ifndef PHP_WIN32
   33: #if SIZEOF_LONG == 8
   34: #define L64(x) x
   35: typedef unsigned long php_hash_uint64;
   36: #if SIZEOF_INT == 4
   37: typedef unsigned int php_hash_uint32;
   38: #elif SIZEOF_SHORT == 4
   39: typedef unsigned short php_hash_uint32;
   40: #else
   41: #error "Need a 32bit integer type"
   42: #endif
   43: #elif SIZEOF_LONG_LONG == 8
   44: #define L64(x) x##LL
   45: typedef unsigned long long php_hash_uint64;
   46: #if SIZEOF_INT == 4
   47: typedef unsigned int php_hash_uint32;
   48: #elif SIZEOF_LONG == 4
   49: typedef unsigned long php_hash_uint32;
   50: #else
   51: #error "Need a 32bit integer type"
   52: #endif
   53: #else
   54: #error "Need a 64bit integer type"
   55: #endif
   56: #else
   57: #define L64(x) x##i64
   58: typedef unsigned __int64 php_hash_uint64;
   59: typedef unsigned __int32 php_hash_uint32;
   60: #endif
   61: 
   62: #endif
   63: 
   64: /*
   65:  * Local variables:
   66:  * tab-width: 4
   67:  * c-basic-offset: 4
   68:  * End:
   69:  * vim600: sw=4 ts=4 fdm=marker
   70:  * vim<600: sw=4 ts=4
   71:  */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>