Home
last modified time | relevance | path

Searched refs:newp (Results 1 – 25 of 58) sorted by relevance

123

/external/libvpx/libvpx/vp9/encoder/
Dvp9_subexp.c81 static int prob_diff_update_cost(vpx_prob newp, vpx_prob oldp) { in prob_diff_update_cost() argument
82 int delp = remap_prob(newp, oldp); in prob_diff_update_cost()
114 void vp9_write_prob_diff_update(vpx_writer *w, vpx_prob newp, vpx_prob oldp) { in vp9_write_prob_diff_update() argument
115 const int delp = remap_prob(newp, oldp); in vp9_write_prob_diff_update()
124 vpx_prob newp, bestnewp = oldp; in vp9_prob_diff_update_savings_search() local
127 for (newp = *bestp; newp != oldp; newp += step) { in vp9_prob_diff_update_savings_search()
128 const int new_b = cost_branch256(ct, newp); in vp9_prob_diff_update_savings_search()
129 const int update_b = prob_diff_update_cost(newp, oldp) + vp9_cost_upd256; in vp9_prob_diff_update_savings_search()
133 bestnewp = newp; in vp9_prob_diff_update_savings_search()
146 int newp; in vp9_prob_diff_update_savings_search_model() local
[all …]
/external/elfutils/src/
Dldscript.y431 struct id_list *newp = new_id_listelem ($2); variable
432 newp->next = $1->next;
433 $$ = $1->next = newp;
466 struct expression *newp = (struct expression *) in new_expr() local
467 obstack_alloc (&ld_state.smem, sizeof (*newp)); in new_expr()
469 newp->tag = tag; in new_expr()
470 return newp; in new_expr()
477 struct input_section_name *newp = (struct input_section_name *) in new_input_section_name() local
478 obstack_alloc (&ld_state.smem, sizeof (*newp)); in new_input_section_name()
480 newp->name = name; in new_input_section_name()
[all …]
Dldgeneric.c277 check_for_duplicate2 (struct usedfiles *newp, struct usedfiles *list) in check_for_duplicate2() argument
293 if (unlikely (list->ino == newp->ino) in check_for_duplicate2()
294 && unlikely (list->dev == newp->dev)) in check_for_duplicate2()
296 close (newp->fd); in check_for_duplicate2()
297 newp->fd = -1; in check_for_duplicate2()
298 newp->status = closed; in check_for_duplicate2()
299 if (newp->file_type == relocatable_file_type) in check_for_duplicate2()
301 newp->rfname); in check_for_duplicate2()
314 check_for_duplicate (struct usedfiles *newp) in check_for_duplicate() argument
318 if (unlikely (fstat (newp->fd, &st) < 0)) in check_for_duplicate()
[all …]
Dar.c162 char *newp = alloca (len + 1); in main() local
163 newp[0] = '-'; in main()
164 memcpy (&newp[1], argv[1], len); in main()
165 argv[1] = newp; in main()
971 struct armem *newp = alloca (sizeof (struct armem)); in do_oper_delete() local
972 newp->old_off = elf_getaroff (subelf); in do_oper_delete()
973 newp->off = cur_off; in do_oper_delete()
979 to_copy = newp->next = newp; in do_oper_delete()
982 newp->next = to_copy->next; in do_oper_delete()
983 to_copy = to_copy->next = newp; in do_oper_delete()
[all …]
Dld.c718 struct file_list *newp; in parse_opt_1st() local
720 newp = (struct file_list *) xmalloc (sizeof (struct file_list)); in parse_opt_1st()
721 newp->name = arg; in parse_opt_1st()
723 newp->next = NULL; in parse_opt_1st()
725 CSNGL_LIST_ADD_REAR (input_file_list, newp); in parse_opt_1st()
1269 struct pathelement *newp; in add_rxxpath() local
1274 newp = (struct pathelement *) obstack_alloc (&ld_state.smem, sizeof (*newp)); in add_rxxpath()
1275 newp->pname = str; in add_rxxpath()
1276 newp->exist = 0; in add_rxxpath()
1278 newp->next = NULL; in add_rxxpath()
[all …]
Dobjdump.c198 struct section_list *newp = xmalloc (sizeof (*newp)); in parse_opt() local
200 newp->scnndx = strtoul (arg, &endp, 0); in parse_opt()
202 newp->is_name = false; in parse_opt()
205 newp->name = arg; in parse_opt()
206 newp->is_name = true; in parse_opt()
208 newp->next = section_list; in parse_opt()
209 section_list = newp; in parse_opt()
/external/elfutils/libdw/
Dlibdw_findcu.c102 struct Dwarf_CU *newp = libdw_typed_alloc (dbg, struct Dwarf_CU); in __libdw_intern_next_unit() local
104 newp->dbg = dbg; in __libdw_intern_next_unit()
105 newp->start = oldoff; in __libdw_intern_next_unit()
106 newp->end = *offsetp; in __libdw_intern_next_unit()
107 newp->address_size = address_size; in __libdw_intern_next_unit()
108 newp->offset_size = offset_size; in __libdw_intern_next_unit()
109 newp->version = version; in __libdw_intern_next_unit()
110 newp->type_sig8 = type_sig8; in __libdw_intern_next_unit()
111 newp->type_offset = type_offset; in __libdw_intern_next_unit()
112 Dwarf_Abbrev_Hash_init (&newp->abbrev_hash, 41); in __libdw_intern_next_unit()
[all …]
Dlibdw_alloc.c47 struct libdw_memblock *newp = malloc (size); in __libdw_allocate() local
48 if (newp == NULL) in __libdw_allocate()
51 uintptr_t result = ((uintptr_t) newp->mem + align - 1) & ~(align - 1); in __libdw_allocate()
53 newp->size = size - offsetof (struct libdw_memblock, mem); in __libdw_allocate()
54 newp->remaining = (uintptr_t) newp + size - (result + minsize); in __libdw_allocate()
56 newp->prev = dbg->mem_tail; in __libdw_allocate()
57 dbg->mem_tail = newp; in __libdw_allocate()
Ddwarf_getlocation.c178 struct loc_s *newp = libdw_alloc (attr->cu->dbg, in check_constant_offset() local
181 newp->addr = attr->valp; in check_constant_offset()
182 newp->loc = result; in check_constant_offset()
183 newp->nloc = 1; in check_constant_offset()
185 found = tsearch (newp, &attr->cu->locs, loc_compare); in check_constant_offset()
566 struct loc_s *newp; in __libdw_intern_expression() local
568 newp = libdw_alloc (dbg, struct loc_s, sizeof (struct loc_s), 1); in __libdw_intern_expression()
571 newp = malloc (sizeof *newp); in __libdw_intern_expression()
572 if (newp == NULL) in __libdw_intern_expression()
579 newp->addr = block->data; in __libdw_intern_expression()
[all …]
Ddwarf_getsrc_file.c144 Dwarf_Line **newp = realloc (match, in dwarf_getsrc_file() local
147 if (newp == NULL) in dwarf_getsrc_file()
153 match = newp; in dwarf_getsrc_file()
/external/elfutils/libasm/
Dasm_newsubscn.c44 AsmScn_t *newp; in asm_newsubscn() local
65 newp = (AsmScn_t *) malloc (sizeof (AsmScn_t)); in asm_newsubscn()
66 if (newp == NULL) in asm_newsubscn()
70 newp->ctx = runp->ctx; in asm_newsubscn()
73 newp->subsection_id = nr; in asm_newsubscn()
76 newp->type = runp->type; in asm_newsubscn()
79 newp->data.up = runp->subsection_id == 0 ? runp : runp->data.up; in asm_newsubscn()
82 newp->offset = 0; in asm_newsubscn()
84 newp->max_align = 1; in asm_newsubscn()
87 newp->content = NULL; in asm_newsubscn()
[all …]
Dasm_align.c156 struct AsmData *newp; in __libasm_ensure_section_space() local
164 newp = (struct AsmData *) malloc (sizeof (struct AsmData) + size); in __libasm_ensure_section_space()
165 if (newp == NULL) in __libasm_ensure_section_space()
168 newp->next = asmscn->content->next; in __libasm_ensure_section_space()
169 asmscn->content = asmscn->content->next = newp; in __libasm_ensure_section_space()
/external/toybox/toys/lsb/
Dpasswd.c49 static void strength_check(char *newp, char *oldp, char *user) in strength_check() argument
53 if (strlen(newp) < 6) { //Min passwd len in strength_check()
57 if (!newp[0]) return; //passwd is empty in strength_check()
59 if (str_check(newp, user)) { in strength_check()
64 if (oldp[0] && str_check(newp, oldp)) { in strength_check()
85 char *newp = NULL; in new_password() local
90 newp = xstrdup(toybuf); in new_password()
91 if (CFG_PASSWD_SAD) strength_check(newp, oldp, user); in new_password()
93 free(newp); in new_password()
97 if (!strcmp(newp, toybuf)) return newp; in new_password()
[all …]
/external/elfutils/lib/
Dlist.h33 #define CDBL_LIST_ADD_REAR(first, newp) \ argument
35 __typeof (newp) _newp = (newp); \
76 #define SNGL_LIST_PUSH(first, newp) \ argument
78 __typeof (newp) _newp = (newp); \
86 #define CSNGL_LIST_ADD_REAR(first, newp) \ argument
88 __typeof (newp) _newp = (newp); \
/external/curl/lib/
Dgopher.c96 char *newp; in gopher_do() local
100 newp = path; in gopher_do()
101 newp+=2; in gopher_do()
104 j = strlen(newp); in gopher_do()
106 if(newp[i] == '?') in gopher_do()
107 newp[i] = '\x09'; in gopher_do()
110 sel = curl_easy_unescape(data, newp, 0, &len); in gopher_do()
Ddict.c96 char *newp; in unescape_word() local
103 newp = curl_easy_unescape(data, inputbuff, 0, &len); in unescape_word()
104 if(!newp) in unescape_word()
111 for(ptr = newp; in unescape_word()
122 free(newp); in unescape_word()
/external/elfutils/libelf/
Delf_newscn.c85 Elf_ScnList *newp = NULL; in elf_newscn() local
97 newp = (Elf_ScnList *) calloc (sizeof (Elf_ScnList) in elf_newscn()
100 if (newp == NULL) in elf_newscn()
106 result = &newp->data[0]; in elf_newscn()
109 ++newp->cnt; in elf_newscn()
112 newp->max = elf->state.elf.scnincr; in elf_newscn()
115 newp->data[0].index in elf_newscn()
119 elf->state.elf.scns_last = elf->state.elf.scns_last->next = newp; in elf_newscn()
/external/jemalloc/include/jemalloc/internal/
Dctl.h71 int ctl_byname(const char *name, void *oldp, size_t *oldlenp, void *newp,
76 void *newp, size_t newlen);
82 #define xmallctl(name, oldp, oldlenp, newp, newlen) do { \ argument
83 if (je_mallctl(name, oldp, oldlenp, newp, newlen) \
100 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument
101 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
/external/jemalloc/src/
Dctl.c46 size_t *oldlenp, void *newp, size_t newlen);
905 ctl_byname(const char *name, void *oldp, size_t *oldlenp, void *newp, in ctl_byname() argument
926 ret = node->ctl(mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname()
953 void *newp, size_t newlen) in ctl_bymib() argument
991 ret = node->ctl(mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib()
1038 if (newp != NULL || newlen != 0) { \
1052 if ((oldp != NULL && oldlenp != NULL) && (newp != NULL || \
1073 if (newp != NULL) { \
1078 (v) = *(t *)newp; \
1089 void *newp, size_t newlen) \
[all …]
/external/e2fsprogs/intl/
Dplural.y66 struct expression *newp; in new_exp() local
74 newp = (struct expression *) malloc (sizeof (*newp)); in new_exp()
75 if (newp != NULL) in new_exp()
77 newp->nargs = nargs; in new_exp()
78 newp->operation = op; in new_exp()
80 newp->val.args[i] = args[i]; in new_exp()
81 return newp; in new_exp()
Ddcigettext.c339 struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \
342 if (newp != NULL) { \
343 newp->address = (addr); \
344 newp->next = (list); \
345 (list) = newp; \
649 struct known_translation_t *newp; in DCIGETTEXT() local
651 newp = (struct known_translation_t *) in DCIGETTEXT()
654 if (newp != NULL) in DCIGETTEXT()
656 newp->domainname = in DCIGETTEXT()
657 mempcpy (newp->msgid, msgid1, msgid_len); in DCIGETTEXT()
[all …]
Dplural.c87 struct expression *newp; in new_exp() local
95 newp = (struct expression *) malloc (sizeof (*newp)); in new_exp()
96 if (newp != NULL) in new_exp()
98 newp->nargs = nargs; in new_exp()
99 newp->operation = op; in new_exp()
101 newp->val.args[i] = args[i]; in new_exp()
102 return newp; in new_exp()
/external/elfutils/libcpu/
Di386_parse.y269 struct synonym *newp = xmalloc (sizeof (*newp)); variable
270 newp->from = $2;
271 newp->to = $3;
272 if (tfind (newp, &synonyms, compare_syn) != NULL)
276 else if (tsearch ( newp, &synonyms, compare_syn) == NULL)
298 struct instruction *newp = xcalloc (sizeof (*newp), variable
303 newp->repe = 1;
305 newp->rep = 1;
308 newp->bytes = $1;
309 newp->mnemonic = $4;
[all …]
/external/elfutils/libdwfl/
Ddwfl_module_getsrc_file.c143 Dwfl_Line **newp = realloc (match, in dwfl_module_getsrc_file() local
146 if (newp == NULL) in dwfl_module_getsrc_file()
152 match = newp; in dwfl_module_getsrc_file()
/external/ppp/pppd/
Dmain.c1326 struct callout *newp, *p, **pp; variable
1331 if ((newp = (struct callout *) malloc(sizeof(struct callout))) == NULL)
1333 newp->c_arg = arg;
1334 newp->c_func = func;
1336 newp->c_time.tv_sec = timenow.tv_sec + secs;
1337 newp->c_time.tv_usec = timenow.tv_usec + usecs;
1338 if (newp->c_time.tv_usec >= 1000000) {
1339 newp->c_time.tv_sec += newp->c_time.tv_usec / 1000000;
1340 newp->c_time.tv_usec %= 1000000;
1347 if (newp->c_time.tv_sec < p->c_time.tv_sec
[all …]

123