Lhogho  0.0.028
 All Data Structures Files Functions Variables Typedefs Macros Pages
testlib.h
Go to the documentation of this file.
1 #ifndef _TESTLIB_HEADER_INCLUDED
2 #define _TESTLIB_HEADER_INCLUDED
3 
4 #if defined(WINDOWS)
5 # if defined(LIB_DLL_EXPORT)
6 # define LIB_API __declspec(dllexport)
7 # else
8 # define LIB_API __declspec(dllimport)
9 # endif
10 #else
11 # if defined(LIB_DLL_EXPORT)
12 # define LIB_API __attribute__((visibility("default")))
13 # else
14 # define LIB_API
15 # endif
16 #endif
17 
18 
19 #include "stdint.h"
20 
21 typedef int(*fn_t)(int, int);
22 
23 
24 LIB_API
25 void initialize_lib();
26 
27 LIB_API unsigned char addub( unsigned char x, unsigned char y );
28 LIB_API unsigned short addus( unsigned short x, unsigned short y );
29 LIB_API unsigned int adduw( unsigned int x, unsigned int y );
30 LIB_API uint64_t addud( uint64_t x, uint64_t y );
31 
32 LIB_API char addib( char x, char y );
33 LIB_API short addis( short x, short y );
34 LIB_API int addiw( int x, int y );
35 LIB_API int64_t addid( int64_t x, int64_t y );
36 
37 LIB_API int apply( fn_t function, int x, int y );
38 
39 #endif //_TESTLIB_HEADER_INCLUDED

[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013