Lines Matching defs:in
103 /* getenv() tries to find the environment variable named <name> in the
154 * No need to zero the heap, the MAP_ANONYMOUS in malloc()
189 /* Converts the unsigned long integer <in> to its hex representation into
194 * in a way to optimize the code size and avoid any divide that could add a
198 int utoh_r(unsigned long in, char *buffer)
205 dig = in >> pos;
206 in -= (uint64_t)dig << pos;
219 /* converts unsigned long <in> to an hex string using the static itoa_buffer
223 char *utoh(unsigned long in)
225 utoh_r(in, itoa_buffer);
229 /* Converts the unsigned long integer <in> to its string representation into
231 * trailing zero (21 bytes for 18446744073709551615 in 64-bit, 11 for
232 * 4294967295 in 32-bit). The buffer is filled from the first byte, and the
234 * The function is constructed in a way to optimize the code size and avoid
238 int utoa_r(unsigned long in, char *buffer)
249 if (digits || in >= lim || !pos) {
250 for (dig = 0; in >= lim; dig++)
251 in -= lim;
260 /* Converts the signed long integer <in> to its string representation into
262 * trailing zero (21 bytes for -9223372036854775808 in 64-bit, 12 for
263 * -2147483648 in 32-bit). The buffer is filled from the first byte, and the
267 int itoa_r(long in, char *buffer)
272 if (in < 0) {
273 in = -(unsigned long)in;
277 len += utoa_r(in, ptr);
285 char *ltoa_r(long in, char *buffer)
287 itoa_r(in, buffer);
291 /* converts long integer <in> to a string using the static itoa_buffer and
295 char *itoa(long in)
297 itoa_r(in, itoa_buffer);
301 /* converts long integer <in> to a string using the static itoa_buffer and
305 char *ltoa(long in)
307 itoa_r(in, itoa_buffer);
311 /* converts unsigned long integer <in> to a string using the static itoa_buffer
315 char *utoa(unsigned long in)
317 utoa_r(in, itoa_buffer);
321 /* Converts the unsigned 64-bit integer <in> to its hex representation into
325 * trailing zero) is returned. The function is constructed in a way to optimize
330 int u64toh_r(uint64_t in, char *buffer)
338 dig = (in >> pos) & 0xF;
341 uint32_t d = (pos >= 32) ? (in >> 32) : in;
355 /* converts uint64_t <in> to an hex string using the static itoa_buffer and
359 char *u64toh(uint64_t in)
361 u64toh_r(in, itoa_buffer);
365 /* Converts the unsigned 64-bit integer <in> to its string representation into
369 * trailing zero) is returned. The function is constructed in a way to optimize
374 int u64toa_r(uint64_t in, char *buffer)
385 if (digits || in >= lim || !pos) {
386 for (dig = 0; in >= lim; dig++)
387 in -= lim;
396 /* Converts the signed 64-bit integer <in> to its string representation into
403 int i64toa_r(int64_t in, char *buffer)
408 if (in < 0) {
409 in = -(uint64_t)in;
413 len += u64toa_r(in, ptr);
417 /* converts int64_t <in> to a string using the static itoa_buffer and returns
421 char *i64toa(int64_t in)
423 i64toa_r(in, itoa_buffer);
427 /* converts uint64_t <in> to a string using the static itoa_buffer and returns
431 char *u64toa(uint64_t in)
433 u64toa_r(in, itoa_buffer);