~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/longlong2str.cc

  • Committer: Mark Atwood
  • Date: 2012-01-04 16:59:32 UTC
  • mfrom: (2478.2.3 real-key-use-catalog)
  • Revision ID: me@mark.atwood.name-20120104165932-cm0xqs4by0u3p4cy
mergeĀ lp:~stewart/drizzle/key-use-catalog

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
#include "m_string.h"
43
43
 
44
 
namespace drizzled
45
 
{
46
 
namespace internal
47
 
{
 
44
namespace drizzled {
 
45
namespace internal {
48
46
 
49
47
#if !defined(int64_t2str) && !defined(HAVE_LONGLONG2STR)
50
48
 
58
56
char *int64_t2str(int64_t val,char *dst,int radix)
59
57
{
60
58
  char buffer[65];
61
 
  register char *p;
62
59
  long long_val;
63
60
  uint64_t uval= (uint64_t) val;
64
61
 
82
79
    *dst='\0';
83
80
    return dst;
84
81
  }
85
 
  p = &buffer[sizeof(buffer)-1];
 
82
  char* p = &buffer[sizeof(buffer)-1];
86
83
  *p = '\0';
87
84
 
88
85
  while (uval > (uint64_t) LONG_MAX)
109
106
char *int64_t10_to_str(int64_t val,char *dst,int radix)
110
107
{
111
108
  char buffer[65];
112
 
  register char *p;
113
109
  long long_val;
114
110
  uint64_t uval= (uint64_t) val;
115
111
 
129
125
    *dst='\0';
130
126
    return dst;
131
127
  }
132
 
  p = &buffer[sizeof(buffer)-1];
 
128
  char* p = &buffer[sizeof(buffer)-1];
133
129
  *p = '\0';
134
130
 
135
131
  while (uval > (uint64_t) LONG_MAX)