xed-portability.h File Reference

#include "xed-types.h"

Go to the source code of this file.

Defines

#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   "%llu"
#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)
#define XED_REINTERPRET_CAST(x, y)   ((x) (y))
#define XED_STATIC_CAST(x, y)   ((x) (y))

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() .


Detailed Description

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

Definition in file xed-portability.h.


Define Documentation

#define XED_FMT_08X   "%08x"
 

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

#define XED_FMT_9U   "%9u"
 

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

#define XED_FMT_D   "%d"
 

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

#define XED_FMT_LD   "%lld"
 

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

#define XED_FMT_LU   "%llu"
 

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

#define XED_FMT_LU12   "%12llu"
 

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

#define XED_FMT_LX   "%llx"
 

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

#define XED_FMT_LX16   "%016llx"
 

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

#define XED_FMT_SIZET   "%llu"
 

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

#define XED_FMT_U   "%u"
 

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

#define XED_FMT_X   "%x"
 

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

#define XED_INLINE   __inline
 

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

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

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

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

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

#define XED_NOINLINE   __declspec(noinline)
 

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

#define XED_NORETURN   __declspec(noreturn)
 

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

#define XED_REINTERPRET_CAST x,
 )     ((x) (y))
 

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

#define XED_STATIC_CAST x,
 )     ((x) (y))
 

Definition at line 51 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 Tue Nov 22 12:27:53 2011 for XED2 by  doxygen 1.4.6