Subversion Repositories Kolibri OS

Rev

Rev 1430 | Rev 1964 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1430 Rev 1870
Line 111... Line 111...
111
        if (n != 0 && size > ULONG_MAX / n)
111
        if (n != 0 && size > ULONG_MAX / n)
112
                return NULL;
112
                return NULL;
113
        return kzalloc(n * size, 0);
113
        return kzalloc(n * size, 0);
114
}
114
}
Line -... Line 115...
-
 
115
 
-
 
116
extern const char hex_asc[];
-
 
117
#define hex_asc_lo(x)   hex_asc[((x) & 0x0f)]
-
 
118
#define hex_asc_hi(x)   hex_asc[((x) & 0xf0) >> 4]
-
 
119
 
-
 
120
static inline char *pack_hex_byte(char *buf, u8 byte)
-
 
121
{
-
 
122
    *buf++ = hex_asc_hi(byte);
-
 
123
    *buf++ = hex_asc_lo(byte);
-
 
124
    return buf;
-
 
125
}
-
 
126
 
115
 
127
 
Line 116... Line 128...
116
void free (void *ptr);
128
void free (void *ptr);
Line 117... Line 129...
117
 
129