libopm  0.1
Macros
snprintf.c File Reference
#include "setup.h"
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <errno.h>

Macros

#define PORTABLE_SNPRINTF_VERSION_MAJOR   2
 
#define PORTABLE_SNPRINTF_VERSION_MINOR   2
 
#define isdigit(c)   ((c) >= '0' && (c) <= '9')
 
#define breakeven_point   6 /* some reasonable one-size-fits-all value */
 
#define fast_memcpy(d, s, n)
 
#define fast_memset(d, c, n)
 

Macro Definition Documentation

#define PORTABLE_SNPRINTF_VERSION_MAJOR   2
#define PORTABLE_SNPRINTF_VERSION_MINOR   2
#define isdigit (   c)    ((c) >= '0' && (c) <= '9')
#define breakeven_point   6 /* some reasonable one-size-fits-all value */
#define fast_memcpy (   d,
  s,
 
)
Value:
{ register size_t nn = (size_t)(n); \
if (nn >= breakeven_point) memcpy((d), (s), nn); \
else if (nn > 0) { /* proc call overhead is worth only for large strings*/\
register char *dd; register const char *ss; \
for (ss=(s), dd=(d); nn>0; nn--) *dd++ = *ss++; } }
#define breakeven_point
Definition: snprintf.c:366
#define fast_memset (   d,
  c,
 
)
Value:
{ register size_t nn = (size_t)(n); \
if (nn >= breakeven_point) memset((d), (int)(c), nn); \
else if (nn > 0) { /* proc call overhead is worth only for large strings*/\
register char *dd; register const int cc=(int)(c); \
for (dd=(d); nn>0; nn--) *dd++ = cc; } }
#define breakeven_point
Definition: snprintf.c:366

Generated for libopm by  doxygen 1.8.11