Lhogho  0.0.028
 All Data Structures Files Functions Variables Typedefs Macros Pages
testlib.h File Reference

Go to the source code of this file.

Macros

#define LIB_API
 

Typedefs

typedef int(* fn_t )(int, int)
 

Functions

LIB_API void initialize_lib ()
 
LIB_API unsigned char addub (unsigned char x, unsigned char y)
 
LIB_API unsigned short addus (unsigned short x, unsigned short y)
 
LIB_API unsigned int adduw (unsigned int x, unsigned int y)
 
LIB_API uint64_t addud (uint64_t x, uint64_t y)
 
LIB_API char addib (char x, char y)
 
LIB_API short addis (short x, short y)
 
LIB_API int addiw (int x, int y)
 
LIB_API int64_t addid (int64_t x, int64_t y)
 
LIB_API int apply (fn_t function, int x, int y)
 

Macro Definition Documentation

#define LIB_API

Definition at line 14 of file testlib.h.

Typedef Documentation

typedef int(* fn_t)(int, int)

Definition at line 21 of file testlib.h.

Function Documentation

LIB_API void initialize_lib ( )

Definition at line 32 of file testlib.c.

33 {
34  // code to initialize the library (if needed)
35 }
LIB_API unsigned char addub ( unsigned char  x,
unsigned char  y 
)

Definition at line 37 of file testlib.c.

38 {
39  return x+y;
40 }
LIB_API unsigned short addus ( unsigned short  x,
unsigned short  y 
)

Definition at line 42 of file testlib.c.

43 {
44  return x+y;
45 }
LIB_API unsigned int adduw ( unsigned int  x,
unsigned int  y 
)

Definition at line 47 of file testlib.c.

48 {
49  return x+y;
50 }
LIB_API uint64_t addud ( uint64_t  x,
uint64_t  y 
)

Definition at line 52 of file testlib.c.

53 {
54  return x+y;
55 }
LIB_API char addib ( char  x,
char  y 
)

Definition at line 57 of file testlib.c.

58 {
59  return x+y;
60 }
LIB_API short addis ( short  x,
short  y 
)

Definition at line 62 of file testlib.c.

63 {
64  return x+y;
65 }
LIB_API int addiw ( int  x,
int  y 
)

Definition at line 67 of file testlib.c.

68 {
69  return x+y;
70 }
LIB_API int64_t addid ( int64_t  x,
int64_t  y 
)

Definition at line 72 of file testlib.c.

73 {
74  return x+y;
75 }
LIB_API int apply ( fn_t  function,
int  x,
int  y 
)

Definition at line 77 of file testlib.c.

78 {
79  return function(x,y);
80 }

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