Main Page Modules Data Structures File List Data Fields Globals Related Pages

# beecrypt/types.h

Go to the documentation of this file.

    00001 /*
    00002  * types.h
    00003  *
    00004  * Types.h generic system types file
    00005  *
    00006  * Copyright (c) 2000 Virtual Unlimited B.V.
    00007  *
    00008  * Author: Bob Deblier <bob@virtualunlimited.com>
    00009  *
    00010  * This library is free software; you can redistribute it and/or
    00011  * modify it under the terms of the GNU Lesser General Public
    00012  * License as published by the Free Software Foundation; either
    00013  * version 2.1 of the License, or (at your option) any later version.
    00014  *
    00015  * This library is distributed in the hope that it will be useful,
    00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00018  * Lesser General Public License for more details.
    00019  *
    00020  * You should have received a copy of the GNU Lesser General Public
    00021  * License along with this library; if not, write to the Free Software
    00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00023  *
    00024  */
    00025
    00026 #ifndef _BEECRYPT_TYPES_H
    00027 #define _BEECRYPT_TYPES_H
    00028
    00029 #ifndef ROTL32
    00030 # define ROTL32(x, s) (((x) << (s)) | ((x) >> (32 - (s))))
    00031 #endif
    00032 #ifndef ROTR32
    00033 # define ROTR32(x, s) (((x) >> (s)) | ((x) << (32 - (s))))
    00034 #endif
    00035
    00036 #if WIN32 && !__CYGWIN32__
    00037 # ifdef BEECRYPT_DLL_EXPORT
    00038 #  define BEECRYPTAPI __declspec(dllexport)
    00039 # else
    00040 #  define BEECRYPTAPI __declspec(dllimport)
    00041 # endif
    00042 #else
    00043 # define BEECRYPTAPI
    00044 typedef unsigned char   byte;
    00045 #endif
    00046
    00047 /*@-typeuse@*/
    00048 typedef char    int8;
    00049 /*@=typeuse@*/
    00050 typedef short   int16;
    00051 typedef int     int32;
    00052 typedef long long       int64;
    00053
    00054 typedef unsigned char   uint8;
    00055 typedef unsigned short  uint16;
    00056 typedef unsigned int    uint32;
    00057 /*@-duplicatequals@*/
    00058 typedef unsigned long long      uint64;
    00059 /*@=duplicatequals@*/
    00060
    00061 typedef char    javabyte;
    00062 typedef short   javashort;
    00063 typedef int     javaint;
    00064 typedef long long       javalong;
    00065
    00066 typedef unsigned short  javachar;
    00067
    00068 typedef float   javafloat;
    00069 typedef double  javadouble;
    00070
    00071 #endif /* _BEECRYPT_TYPES_H */