xed-portability.h File Reference


Detailed Description

Author:
Mark Charney <mark.charney@intel.com>

Definition in file xed-portability.h.

#include "xed-types.h"

Go to the source code of this file.

Defines

#define REINTERPRET_CAST(x, y)   ((x) (y))
#define STATIC_CAST(x, y)   ((x) (y))
#define XED_FMT_08X   "%08x"
#define XED_FMT_9U   "%9u"
#define XED_FMT_D   "%d"
#define XED_FMT_LD   "%lld"
#define XED_FMT_LU   "%llu"
#define XED_FMT_LU12   "%12llu"
#define XED_FMT_LX   "%llx"
#define XED_FMT_LX16   "%016llx"
#define XED_FMT_SIZET   "%d"
#define XED_FMT_U   "%u"
#define XED_FMT_X   "%x"
#define XED_INLINE   __inline
#define XED_MAX(a, b)   (((a) > (b)) ? (a):(b))
#define XED_MIN(a, b)   (((a) < (b)) ? (a):(b))
#define XED_NOINLINE   __declspec(noinline)
#define XED_NORETURN   __declspec(noreturn)

Functions

XED_DLL_EXPORT void xed_strcat (char *dst, const char *src)
XED_DLL_EXPORT void xed_strcpy (char *dst, const char *src)
XED_DLL_EXPORT xed_uint_t xed_strlen (const char *s)
XED_DLL_EXPORT int xed_strncat (char *dst, const char *src, int len)
 returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .
XED_DLL_EXPORT int xed_strncpy (char *dst, const char *src, int len)
 returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .


Define Documentation

#define REINTERPRET_CAST (  x,
y   )     ((x) (y))
 

Definition at line 41 of file xed-portability.h.

#define STATIC_CAST (  x,
y   )     ((x) (y))
 

Definition at line 40 of file xed-portability.h.

#define XED_FMT_08X   "%08x"
 

Definition at line 95 of file xed-portability.h.

#define XED_FMT_9U   "%9u"
 

Definition at line 98 of file xed-portability.h.

#define XED_FMT_D   "%d"
 

Definition at line 96 of file xed-portability.h.

#define XED_FMT_LD   "%lld"
 

Definition at line 111 of file xed-portability.h.

#define XED_FMT_LU   "%llu"
 

Definition at line 109 of file xed-portability.h.

#define XED_FMT_LU12   "%12llu"
 

Definition at line 110 of file xed-portability.h.

#define XED_FMT_LX   "%llx"
 

Definition at line 108 of file xed-portability.h.

#define XED_FMT_LX16   "%016llx"
 

Definition at line 112 of file xed-portability.h.

#define XED_FMT_SIZET   "%d"
 

Definition at line 119 of file xed-portability.h.

#define XED_FMT_U   "%u"
 

Definition at line 97 of file xed-portability.h.

#define XED_FMT_X   "%x"
 

Definition at line 94 of file xed-portability.h.

#define XED_INLINE   __inline
 

Definition at line 131 of file xed-portability.h.

#define XED_MAX (  a,
b   )     (((a) > (b)) ? (a):(b))
 

Definition at line 142 of file xed-portability.h.

#define XED_MIN (  a,
b   )     (((a) < (b)) ? (a):(b))
 

Definition at line 143 of file xed-portability.h.

#define XED_NOINLINE   __declspec(noinline)
 

Definition at line 135 of file xed-portability.h.

#define XED_NORETURN   __declspec(noreturn)
 

Definition at line 137 of file xed-portability.h.


Function Documentation

XED_DLL_EXPORT void xed_strcat (  char *  dst,
const char *  src
) 
 

XED_DLL_EXPORT void xed_strcpy (  char *  dst,
const char *  src
) 
 

XED_DLL_EXPORT xed_uint_t xed_strlen (  const char *  s  ) 
 

XED_DLL_EXPORT int xed_strncat (  char *  dst,
const char *  src,
int  len
) 
 

returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .

XED_DLL_EXPORT int xed_strncpy (  char *  dst,
const char *  src,
int  len
) 
 

returns the number of bytes remaining for the next use of xed_strncpy() or xed_strncat() .


Generated on Wed Dec 3 03:10:46 2008 for XED2 by  doxygen 1.4.6