File: beecrypt.api.h

package info (click to toggle)
beecrypt 2.2.0-pre1-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,820 kB
  • ctags: 1,325
  • sloc: ansic: 12,215; sh: 9,073; asm: 2,715; makefile: 80
file content (49 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _BEECRYPT_API_H
#define _BEECRYPT_API_H

#if defined(_WIN32) && !defined(WIN32)
# define WIN32 1
#endif

#if WIN32 && !__CYGWIN32__
# include "beecrypt.win.h"
# ifdef BEECRYPT_DLL_EXPORT
#  define BEECRYPTAPI __declspec(dllexport)
# else
#  define BEECRYPTAPI __declspec(dllimport)
# endif
/*typedef UINT8_TYPE    byte;*/
#else
# include "beecrypt.gnu.h"
# define BEECRYPTAPI
typedef UINT8_TYPE  byte;
#endif

#ifndef ROTL32
# define ROTL32(x, s) (((x) << (s)) | ((x) >> (32 - (s))))
#endif
#ifndef ROTR32
# define ROTR32(x, s) (((x) >> (s)) | ((x) << (32 - (s))))
#endif

typedef INT8_TYPE   int8;
typedef INT16_TYPE  int16;
typedef INT32_TYPE  int32;
typedef INT64_TYPE  int64;

typedef UINT8_TYPE  uint8;
typedef UINT16_TYPE uint16;
typedef UINT32_TYPE uint32;
typedef UINT64_TYPE uint64;

typedef INT8_TYPE   javabyte;
typedef INT16_TYPE  javashort;
typedef INT32_TYPE  javaint;
typedef INT64_TYPE  javalong;

typedef UINT16_TYPE javachar;

typedef FLOAT4_TYPE     javafloat;
typedef DOUBLE8_TYPE    javadouble;

#endif