Lines Matching defs:in

81 /* getenv() tries to find the environment variable named <name> in the
158 * No need to zero the heap, the MAP_ANONYMOUS in malloc()
193 /* Converts the unsigned long integer <in> to its hex representation into
198 * in a way to optimize the code size and avoid any divide that could add a
202 int utoh_r(unsigned long in, char *buffer)
209 dig = in >> pos;
210 in -= (uint64_t)dig << pos;
223 /* converts unsigned long <in> to an hex string using the static itoa_buffer
227 char *utoh(unsigned long in)
229 utoh_r(in, itoa_buffer);
233 /* Converts the unsigned long integer <in> to its string representation into
235 * trailing zero (21 bytes for 18446744073709551615 in 64-bit, 11 for
236 * 4294967295 in 32-bit). The buffer is filled from the first byte, and the
238 * The function is constructed in a way to optimize the code size and avoid
242 int utoa_r(unsigned long in, char *buffer)
253 if (digits || in >= lim || !pos) {
254 for (dig = 0; in >= lim; dig++)
255 in -= lim;
264 /* Converts the signed long integer <in> to its string representation into
266 * trailing zero (21 bytes for -9223372036854775808 in 64-bit, 12 for
267 * -2147483648 in 32-bit). The buffer is filled from the first byte, and the
271 int itoa_r(long in, char *buffer)
276 if (in < 0) {
277 in = -in;
281 len += utoa_r(in, ptr);
289 char *ltoa_r(long in, char *buffer)
291 itoa_r(in, buffer);
295 /* converts long integer <in> to a string using the static itoa_buffer and
299 char *itoa(long in)
301 itoa_r(in, itoa_buffer);
305 /* converts long integer <in> to a string using the static itoa_buffer and
309 char *ltoa(long in)
311 itoa_r(in, itoa_buffer);
315 /* converts unsigned long integer <in> to a string using the static itoa_buffer
319 char *utoa(unsigned long in)
321 utoa_r(in, itoa_buffer);
325 /* Converts the unsigned 64-bit integer <in> to its hex representation into
329 * trailing zero) is returned. The function is constructed in a way to optimize
334 int u64toh_r(uint64_t in, char *buffer)
342 dig = (in >> pos) & 0xF;
345 uint32_t d = (pos >= 32) ? (in >> 32) : in;
359 /* converts uint64_t <in> to an hex string using the static itoa_buffer and
363 char *u64toh(uint64_t in)
365 u64toh_r(in, itoa_buffer);
369 /* Converts the unsigned 64-bit integer <in> to its string representation into
373 * trailing zero) is returned. The function is constructed in a way to optimize
378 int u64toa_r(uint64_t in, char *buffer)
389 if (digits || in >= lim || !pos) {
390 for (dig = 0; in >= lim; dig++)
391 in -= lim;
400 /* Converts the signed 64-bit integer <in> to its string representation into
407 int i64toa_r(int64_t in, char *buffer)
412 if (in < 0) {
413 in = -in;
417 len += u64toa_r(in, ptr);
421 /* converts int64_t <in> to a string using the static itoa_buffer and returns
425 char *i64toa(int64_t in)
427 i64toa_r(in, itoa_buffer);
431 /* converts uint64_t <in> to a string using the static itoa_buffer and returns
435 char *u64toa(uint64_t in)
437 u64toa_r(in, itoa_buffer);