Lines Matching refs:dp
375 mp_limb_t *dp; in multiply() local
379 dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); in multiply()
380 if (dp == NULL) in multiply()
383 dp[--k] = 0; in multiply()
392 carry += dp[i + j]; in multiply()
393 dp[i + j] = (mp_limb_t) carry; in multiply()
396 dp[i + len2] = (mp_limb_t) carry; in multiply()
399 while (dlen > 0 && dp[dlen - 1] == 0) in multiply()
402 dest->limbs = dp; in multiply()
1802 DIRECTIVE *dp; in VASNPRINTF() local
1870 for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) in VASNPRINTF()
1872 if (cp != dp->dir_start) in VASNPRINTF()
1874 size_t n = dp->dir_start - cp; in VASNPRINTF()
1897 if (dp->conversion == '%') in VASNPRINTF()
1901 if (!(dp->arg_index == ARG_NONE)) in VASNPRINTF()
1910 if (!(dp->arg_index != ARG_NONE)) in VASNPRINTF()
1913 if (dp->conversion == 'n') in VASNPRINTF()
1915 switch (a.arg[dp->arg_index].type) in VASNPRINTF()
1918 *a.arg[dp->arg_index].a.a_count_schar_pointer = length; in VASNPRINTF()
1921 *a.arg[dp->arg_index].a.a_count_short_pointer = length; in VASNPRINTF()
1924 *a.arg[dp->arg_index].a.a_count_int_pointer = length; in VASNPRINTF()
1927 *a.arg[dp->arg_index].a.a_count_longint_pointer = length; in VASNPRINTF()
1931 *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; in VASNPRINTF()
1940 else if (dp->conversion == 'U') in VASNPRINTF()
1942 arg_type type = a.arg[dp->arg_index].type; in VASNPRINTF()
1943 int flags = dp->flags; in VASNPRINTF()
1951 if (dp->width_start != dp->width_end) in VASNPRINTF()
1953 if (dp->width_arg_index != ARG_NONE) in VASNPRINTF()
1957 if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) in VASNPRINTF()
1959 arg = a.arg[dp->width_arg_index].a.a_int; in VASNPRINTF()
1972 const FCHAR_T *digitp = dp->width_start; in VASNPRINTF()
1976 while (digitp != dp->width_end); in VASNPRINTF()
1983 if (dp->precision_start != dp->precision_end) in VASNPRINTF()
1985 if (dp->precision_arg_index != ARG_NONE) in VASNPRINTF()
1989 if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) in VASNPRINTF()
1991 arg = a.arg[dp->precision_arg_index].a.a_int; in VASNPRINTF()
2002 const FCHAR_T *digitp = dp->precision_start + 1; in VASNPRINTF()
2005 while (digitp != dp->precision_end) in VASNPRINTF()
2015 const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; in VASNPRINTF()
2077 && !(dp->flags & FLAG_LEFT)) in VASNPRINTF()
2131 && (dp->flags & FLAG_LEFT)) in VASNPRINTF()
2143 const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; in VASNPRINTF()
2205 && !(dp->flags & FLAG_LEFT)) in VASNPRINTF()
2259 && (dp->flags & FLAG_LEFT)) in VASNPRINTF()
2271 const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; in VASNPRINTF()
2333 && !(dp->flags & FLAG_LEFT)) in VASNPRINTF()
2387 && (dp->flags & FLAG_LEFT)) in VASNPRINTF()
2403 else if (dp->conversion == 's' in VASNPRINTF()
2405 && a.arg[dp->arg_index].type != TYPE_WIDE_STRING in VASNPRINTF()
2407 && a.arg[dp->arg_index].type == TYPE_WIDE_STRING in VASNPRINTF()
2421 int flags = dp->flags; in VASNPRINTF()
2429 if (dp->width_start != dp->width_end) in VASNPRINTF()
2431 if (dp->width_arg_index != ARG_NONE) in VASNPRINTF()
2435 if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) in VASNPRINTF()
2437 arg = a.arg[dp->width_arg_index].a.a_int; in VASNPRINTF()
2450 const FCHAR_T *digitp = dp->width_start; in VASNPRINTF()
2454 while (digitp != dp->width_end); in VASNPRINTF()
2461 if (dp->precision_start != dp->precision_end) in VASNPRINTF()
2463 if (dp->precision_arg_index != ARG_NONE) in VASNPRINTF()
2467 if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) in VASNPRINTF()
2469 arg = a.arg[dp->precision_arg_index].a.a_int; in VASNPRINTF()
2480 const FCHAR_T *digitp = dp->precision_start + 1; in VASNPRINTF()
2483 while (digitp != dp->precision_end) in VASNPRINTF()
2492 const char *arg = a.arg[dp->arg_index].a.a_string; in VASNPRINTF()
2577 && !(dp->flags & FLAG_LEFT)) in VASNPRINTF()
2639 && (dp->flags & FLAG_LEFT)) in VASNPRINTF()
2650 const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; in VASNPRINTF()
2831 && !(dp->flags & FLAG_LEFT)) in VASNPRINTF()
2915 && (dp->flags & FLAG_LEFT)) in VASNPRINTF()
2927 else if ((dp->conversion == 'a' || dp->conversion == 'A') in VASNPRINTF()
2931 || a.arg[dp->arg_index].type == TYPE_DOUBLE in VASNPRINTF()
2934 || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE in VASNPRINTF()
2940 arg_type type = a.arg[dp->arg_index].type; in VASNPRINTF()
2941 int flags = dp->flags; in VASNPRINTF()
2954 if (dp->width_start != dp->width_end) in VASNPRINTF()
2956 if (dp->width_arg_index != ARG_NONE) in VASNPRINTF()
2960 if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) in VASNPRINTF()
2962 arg = a.arg[dp->width_arg_index].a.a_int; in VASNPRINTF()
2975 const FCHAR_T *digitp = dp->width_start; in VASNPRINTF()
2979 while (digitp != dp->width_end); in VASNPRINTF()
2986 if (dp->precision_start != dp->precision_end) in VASNPRINTF()
2988 if (dp->precision_arg_index != ARG_NONE) in VASNPRINTF()
2992 if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) in VASNPRINTF()
2994 arg = a.arg[dp->precision_arg_index].a.a_int; in VASNPRINTF()
3005 const FCHAR_T *digitp = dp->precision_start + 1; in VASNPRINTF()
3008 while (digitp != dp->precision_end) in VASNPRINTF()
3057 long double arg = a.arg[dp->arg_index].a.a_longdouble; in VASNPRINTF()
3061 if (dp->conversion == 'A') in VASNPRINTF()
3092 if (dp->conversion == 'A') in VASNPRINTF()
3142 *p++ = dp->conversion - 'A' + 'X'; in VASNPRINTF()
3164 : dp->conversion - 10); in VASNPRINTF()
3175 *p++ = dp->conversion - 'A' + 'P'; in VASNPRINTF()
3211 double arg = a.arg[dp->arg_index].a.a_double; in VASNPRINTF()
3215 if (dp->conversion == 'A') in VASNPRINTF()
3243 if (dp->conversion == 'A') in VASNPRINTF()
3293 *p++ = dp->conversion - 'A' + 'X'; in VASNPRINTF()
3315 : dp->conversion - 10); in VASNPRINTF()
3326 *p++ = dp->conversion - 'A' + 'P'; in VASNPRINTF()
3419 else if ((dp->conversion == 'f' || dp->conversion == 'F' in VASNPRINTF()
3420 || dp->conversion == 'e' || dp->conversion == 'E' in VASNPRINTF()
3421 || dp->conversion == 'g' || dp->conversion == 'G' in VASNPRINTF()
3422 || dp->conversion == 'a' || dp->conversion == 'A') in VASNPRINTF()
3425 || a.arg[dp->arg_index].type == TYPE_DOUBLE in VASNPRINTF()
3427 || (a.arg[dp->arg_index].type == TYPE_DOUBLE in VASNPRINTF()
3431 && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) in VASNPRINTF()
3434 || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE in VASNPRINTF()
3436 || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE in VASNPRINTF()
3441 && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) in VASNPRINTF()
3446 arg_type type = a.arg[dp->arg_index].type; in VASNPRINTF()
3448 int flags = dp->flags; in VASNPRINTF()
3461 if (dp->width_start != dp->width_end) in VASNPRINTF()
3463 if (dp->width_arg_index != ARG_NONE) in VASNPRINTF()
3467 if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) in VASNPRINTF()
3469 arg = a.arg[dp->width_arg_index].a.a_int; in VASNPRINTF()
3482 const FCHAR_T *digitp = dp->width_start; in VASNPRINTF()
3486 while (digitp != dp->width_end); in VASNPRINTF()
3493 if (dp->precision_start != dp->precision_end) in VASNPRINTF()
3495 if (dp->precision_arg_index != ARG_NONE) in VASNPRINTF()
3499 if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) in VASNPRINTF()
3501 arg = a.arg[dp->precision_arg_index].a.a_int; in VASNPRINTF()
3512 const FCHAR_T *digitp = dp->precision_start + 1; in VASNPRINTF()
3515 while (digitp != dp->precision_end) in VASNPRINTF()
3526 if (!(dp->conversion == 'a' || dp->conversion == 'A')) in VASNPRINTF()
3547 if (dp->conversion == 'f' || dp->conversion == 'F') in VASNPRINTF()
3549 long double arg = a.arg[dp->arg_index].a.a_longdouble; in VASNPRINTF()
3563 if (dp->conversion == 'f' || dp->conversion == 'F') in VASNPRINTF()
3565 double arg = a.arg[dp->arg_index].a.a_double; in VASNPRINTF()
3606 long double arg = a.arg[dp->arg_index].a.a_longdouble; in VASNPRINTF()
3610 if (dp->conversion >= 'A' && dp->conversion <= 'Z') in VASNPRINTF()
3641 if (dp->conversion >= 'A' && dp->conversion <= 'Z') in VASNPRINTF()
3655 if (dp->conversion == 'f' || dp->conversion == 'F') in VASNPRINTF()
3693 else if (dp->conversion == 'e' || dp->conversion == 'E') in VASNPRINTF()
3788 *p++ = dp->conversion; /* 'e' or 'E' */ in VASNPRINTF()
3814 else if (dp->conversion == 'g' || dp->conversion == 'G') in VASNPRINTF()
3969 *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ in VASNPRINTF()
4008 if (dp->conversion == 'f' || dp->conversion == 'F') in VASNPRINTF()
4018 else if (dp->conversion == 'e' || dp->conversion == 'E') in VASNPRINTF()
4027 *p++ = dp->conversion; /* 'e' or 'E' */ in VASNPRINTF()
4032 else if (dp->conversion == 'g' || dp->conversion == 'G') in VASNPRINTF()
4044 else if (dp->conversion == 'a' || dp->conversion == 'A') in VASNPRINTF()
4047 *p++ = dp->conversion - 'A' + 'X'; in VASNPRINTF()
4056 *p++ = dp->conversion - 'A' + 'P'; in VASNPRINTF()
4074 double arg = a.arg[dp->arg_index].a.a_double; in VASNPRINTF()
4078 if (dp->conversion >= 'A' && dp->conversion <= 'Z') in VASNPRINTF()
4106 if (dp->conversion >= 'A' && dp->conversion <= 'Z') in VASNPRINTF()
4120 if (dp->conversion == 'f' || dp->conversion == 'F') in VASNPRINTF()
4155 else if (dp->conversion == 'e' || dp->conversion == 'E') in VASNPRINTF()
4246 *p++ = dp->conversion; /* 'e' or 'E' */ in VASNPRINTF()
4288 else if (dp->conversion == 'g' || dp->conversion == 'G') in VASNPRINTF()
4439 *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ in VASNPRINTF()
4494 if (dp->conversion == 'f' || dp->conversion == 'F') in VASNPRINTF()
4504 else if (dp->conversion == 'e' || dp->conversion == 'E') in VASNPRINTF()
4513 *p++ = dp->conversion; /* 'e' or 'E' */ in VASNPRINTF()
4523 else if (dp->conversion == 'g' || dp->conversion == 'G') in VASNPRINTF()
4606 arg_type type = a.arg[dp->arg_index].type; in VASNPRINTF()
4607 int flags = dp->flags; in VASNPRINTF()
4641 if (dp->width_start != dp->width_end) in VASNPRINTF()
4643 if (dp->width_arg_index != ARG_NONE) in VASNPRINTF()
4647 if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) in VASNPRINTF()
4649 arg = a.arg[dp->width_arg_index].a.a_int; in VASNPRINTF()
4662 const FCHAR_T *digitp = dp->width_start; in VASNPRINTF()
4666 while (digitp != dp->width_end); in VASNPRINTF()
4675 if (dp->precision_start != dp->precision_end) in VASNPRINTF()
4677 if (dp->precision_arg_index != ARG_NONE) in VASNPRINTF()
4681 if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) in VASNPRINTF()
4683 arg = a.arg[dp->precision_arg_index].a.a_int; in VASNPRINTF()
4694 const FCHAR_T *digitp = dp->precision_start + 1; in VASNPRINTF()
4697 while (digitp != dp->precision_end) in VASNPRINTF()
4706 switch (dp->conversion) in VASNPRINTF()
4721 switch (dp->conversion) in VASNPRINTF()
4746 MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, in VASNPRINTF()
4794 if (dp->width_start != dp->width_end) in VASNPRINTF()
4796 size_t n = dp->width_end - dp->width_start; in VASNPRINTF()
4801 memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); in VASNPRINTF()
4806 const FCHAR_T *mp = dp->width_start; in VASNPRINTF()
4815 if (dp->precision_start != dp->precision_end) in VASNPRINTF()
4817 size_t n = dp->precision_end - dp->precision_start; in VASNPRINTF()
4822 memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); in VASNPRINTF()
4827 const FCHAR_T *mp = dp->precision_start; in VASNPRINTF()
4867 if (dp->conversion == 'F') in VASNPRINTF()
4871 *fbp = dp->conversion; in VASNPRINTF()
4910 if (!pad_ourselves && dp->width_arg_index != ARG_NONE) in VASNPRINTF()
4912 if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) in VASNPRINTF()
4914 prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; in VASNPRINTF()
4916 if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) in VASNPRINTF()
4918 if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) in VASNPRINTF()
4920 prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; in VASNPRINTF()
5000 int arg = a.arg[dp->arg_index].a.a_schar; in VASNPRINTF()
5006 unsigned int arg = a.arg[dp->arg_index].a.a_uchar; in VASNPRINTF()
5012 int arg = a.arg[dp->arg_index].a.a_short; in VASNPRINTF()
5018 unsigned int arg = a.arg[dp->arg_index].a.a_ushort; in VASNPRINTF()
5024 int arg = a.arg[dp->arg_index].a.a_int; in VASNPRINTF()
5030 unsigned int arg = a.arg[dp->arg_index].a.a_uint; in VASNPRINTF()
5036 long int arg = a.arg[dp->arg_index].a.a_longint; in VASNPRINTF()
5042 unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; in VASNPRINTF()
5049 long long int arg = a.arg[dp->arg_index].a.a_longlongint; in VASNPRINTF()
5055 unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; in VASNPRINTF()
5062 double arg = a.arg[dp->arg_index].a.a_double; in VASNPRINTF()
5068 long double arg = a.arg[dp->arg_index].a.a_longdouble; in VASNPRINTF()
5074 int arg = a.arg[dp->arg_index].a.a_char; in VASNPRINTF()
5081 wint_t arg = a.arg[dp->arg_index].a.a_wide_char; in VASNPRINTF()
5088 const char *arg = a.arg[dp->arg_index].a.a_string; in VASNPRINTF()
5095 const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; in VASNPRINTF()
5102 void *arg = a.arg[dp->arg_index].a.a_pointer; in VASNPRINTF()
5154 MAX_ROOM_NEEDED (&a, dp->arg_index, in VASNPRINTF()
5155 dp->conversion, type, flags, in VASNPRINTF()
5202 : (dp->conversion == 'c' || dp->conversion == 's' in VASNPRINTF()
5317 if (dp->conversion == 'c' || dp->conversion == 's') in VASNPRINTF()
5461 if (dp->conversion == 'c' in VASNPRINTF()
5462 || dp->conversion == 's') in VASNPRINTF()
5525 if (dp->conversion == 'F') in VASNPRINTF()