Searched defs:new (Results 126 - 150 of 368) sorted by relevance

1234567891011>>

/external/valgrind/main/drd/tests/
H A Dannotate_sem.c40 unsigned old, new; local
46 new = old - 1;
49 } while (!old || !__sync_bool_compare_and_swap(&p->value, old, new));
/external/clang/test/CodeGenCXX/
H A Ddllexport-members.cpp426 __declspec(dllexport) void* operator new(__SIZE_TYPE__);
427 __declspec(dllexport) void* operator new[](__SIZE_TYPE__);
436 void* ExportAlloc::operator new(__SIZE_TYPE__ n) { return malloc(n); }
442 void* ExportAlloc::operator new[](__SIZE_TYPE__ n) { return malloc(n); }
/external/pdfium/core/src/fxcrt/
H A Dfx_basic_memmgr.cpp162 void* CFX_Object::operator new(size_t size)
166 void* CFX_Object::operator new[](size_t size)
170 void* CFX_Object::operator new[](size_t size, FX_LPCSTR file, int line)
174 void* CFX_Object::operator new(size_t size, FX_LPCSTR file, int line)
194 void* CFX_AllocObject::operator new(size_t size, IFX_Allocator* pAllocator, FX_LPCSTR filename, int line)
209 void* CFX_AllocObject::operator new(size_t size, IFX_Allocator* pAllocator)
/external/stlport/test/eh/
H A Dnc_alloc.cpp21 # include <new>
27 # include <new.h>
205 void* _STLP_CALL operator new(size_t s)
212 void* _STLP_CALL operator new(size_t size, const EH_STD::nothrow_t&) throw() {
223 void* _STLP_CALL operator new[](size_t size ) throw(EH_STD::bad_alloc) {
228 void* _STLP_CALL operator new[](size_t size, const EH_STD::nothrow_t&) throw() {
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
H A Dtemplate.rb16 @template_library ||= ANTLR3::Template::Group.new
40 self.class.template_library or ANTLR3::Template::Group.new
49 @templates.new( source, values )
69 when TokenSource then TokenRewriteStream.new( input, options )
72 TokenRewriteStream.new( lexer_class.new( input, options ), options )
96 lexer = Lexer.new( source, options )
97 parser = Parser.new( lexer, options )
109 input = ANTLR3::FileStream.new( group_file, options )
110 lexer = Lexer.new( inpu
115 def self.new( &block ) singleton method in class:ANTLR3.Template.Group
122 def new( source, values = {} ) method in class:ANTLR3.Template.Group
[all...]
/external/blktrace/btt/
H A Dlist.h50 * Insert a new entry between two known consecutive entries.
55 static inline void __list_add(struct list_head *new, argument
59 next->prev = new;
60 new->next = next;
61 new->prev = prev;
62 prev->next = new;
66 * list_add - add a new entry
67 * @new: new entry to be added
70 * Insert a new entr
73 list_add(struct list_head *new, struct list_head *head) argument
86 list_add_tail(struct list_head *new, struct list_head *head) argument
223 list_replace(struct list_head *old, struct list_head *new) argument
232 list_replace_init(struct list_head *old, struct list_head *new) argument
[all...]
/external/bsdiff/
H A Dbspatch.c67 u_char *old, *new; local
142 if((new=malloc(newsize+1))==NULL) err(1,NULL);
165 lenread = BZ2_bzRead(&dbz2err, dpfbz2, new + newpos, ctrl[0]);
173 new[newpos+i]+=old[oldpos+i];
184 lenread = BZ2_bzRead(&ebz2err, epfbz2, new + newpos, ctrl[1]);
201 /* Write the new file */
203 (write(fd,new,newsize)!=newsize) || (close(fd)==-1))
206 free(new);
/external/chromium_org/courgette/
H A Dmemory_monitor.cc116 void* operator new(size_t s) {
/external/chromium_org/ppapi/native_client/src/untrusted/nacl_ppapi_util/
H A Dnacl_ppapi_util.h176 void *operator new(size_t size) { return g_void_result; }
/external/chromium_org/third_party/WebKit/Source/
H A Dconfig.h134 // Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
135 #undef new macro
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DElementData.h137 // Add support for placement new as ShareableElementData is not allocated
140 // with the computed size and subsequently call placement new with the
142 void* operator new(std::size_t, void* location)
/external/chromium_org/third_party/mesa/src/src/glsl/
H A Dglsl_symbol_table.cpp29 /* Callers of this ralloc-based new need not call delete. It's
31 static void* operator new(size_t size, void *ctx)
97 /* If not declared at this scope, add a new entry. But if an existing
99 * the new variable declaration would shadow the function.
101 symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(v);
113 symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(v);
119 symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(t);
133 symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(f);
139 symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(u);
145 symbol_table_entry *entry = new(mem_ct
[all...]
H A Dloop_analysis.h144 static void* operator new(size_t size, void *ctx)
/external/chromium_org/third_party/skia/bench/
H A DGrMemoryPoolBench.cpp17 // change this to 0 to compare GrMemoryPool to default new / delete
23 void* operator new (size_t size) { return gBenchPool.allocate(size); }
69 objects[count] = new A;
85 void* operator new (size_t size) { return gBenchPool.allocate(size); }
116 objects[idx].reset(new B);
130 void* operator new (size_t size) { return gBenchPool.allocate(size); }
160 objects[i] = new C;
174 DEF_BENCH( return new GrMemoryPoolBenchStack(); )
175 DEF_BENCH( return new GrMemoryPoolBenchRandom(); )
176 DEF_BENCH( return new GrMemoryPoolBenchQueu
[all...]
/external/chromium_org/third_party/skia/include/core/
H A DSkTLazy.h15 #include <new>
18 template <typename T> void* operator new(size_t, SkTLazy<T>* lazy);
30 fPtr = new (fStorage) T(*src);
36 fPtr = new (fStorage) T(*src->get());
58 fPtr = new (SkTCast<T*>(fStorage)) T;
72 fPtr = new (SkTCast<T*>(fStorage)) T(src);
106 friend void* operator new<T>(size_t, SkTLazy* lazy);
113 template <typename T> void* operator new(size_t, SkTLazy<T>* lazy) {
120 // to match the op new silences warnings about missing op delete when a constructor throws an
125 #define SkNEW_IN_TLAZY(tlazy_ptr, type_name, args) (new (tlazy_pt
[all...]
/external/chromium_org/third_party/skia/include/gpu/
H A DGrProcessor.h109 void* operator new(size_t size);
112 void* operator new(size_t size, void* placement) {
113 return ::operator new(size, placement);
/external/chromium_org/third_party/skia/tools/lua/
H A Dskia.lua23 function Sk.Rect.new(l, t, r, b)
/external/chromium_org/tools/emacs/
H A Dtrybot.el96 (defun trybot-get-new-buffer ()
97 "Get a new clean buffer for trybot output."
126 (buffer (trybot-get-new-buffer))
/external/chromium_org/v8/src/
H A Dtyping.h27 void* operator new(size_t size, Zone* zone) {
/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyUtil.h67 inline void *operator new(size_t Sz,
226 Data = new VectorData();
244 Data = new VectorData();
250 Data = new VectorData(*Data);
283 // Push a new element onto the end. The vector must be writable.
/external/e2fsprogs/lib/ext2fs/
H A Drbtree.c304 * both the new entry and any damage done by rebalance
430 void ext2fs_rb_replace_node(struct rb_node *victim, struct rb_node *new, argument
438 parent->rb_left = new;
440 parent->rb_right = new;
442 root->rb_node = new;
445 ext2fs_rb_set_parent(victim->rb_left, new);
447 ext2fs_rb_set_parent(victim->rb_right, new);
450 *new = *victim;
/external/ipsec-tools/src/racoon/
H A Dpolicy.c292 struct secpolicy *new; local
294 new = racoon_calloc(1, sizeof(*new));
295 if (new == NULL)
298 return new;
381 inssp(new)
382 struct secpolicy *new;
388 if (new->spidx.priority < p->spidx.priority) {
389 TAILQ_INSERT_BEFORE(p, new, chain);
395 TAILQ_INSERT_TAIL(&sptree, new, chai
428 struct ipsecrequest *new; local
[all...]
H A Dsainfo.c166 struct sainfo *new; local
168 new = racoon_calloc(1, sizeof(*new));
169 if (new == NULL)
172 new->lifetime = IPSECDOI_ATTR_SA_LD_SEC_DEFAULT;
173 new->lifebyte = IPSECDOI_ATTR_SA_LD_KB_MAX;
175 return new;
201 inssainfo(new)
202 struct sainfo *new;
204 LIST_INSERT_HEAD(&sitree, new, chai
235 struct sainfoalg *new; local
[all...]
H A Dschedule.c124 * add new schedule to schedule table.
133 struct sched *new; local
135 new = (struct sched *)racoon_malloc(sizeof(*new));
136 if (new == NULL)
139 memset(new, 0, sizeof(*new));
140 new->func = func;
141 new->param = param;
143 new
232 caddr_t new; local
[all...]
/external/libnl/lib/
H A Dobject.c38 * Allocate a new object of kind specified by the operations handle
40 * @return The new object or NULL
44 struct nl_object *new; local
46 if (ops->oo_size < sizeof(*new))
49 new = calloc(1, ops->oo_size);
50 if (!new)
53 new->ce_refcnt = 1;
54 nl_init_list_head(&new->ce_list);
56 new->ce_ops = ops;
58 ops->oo_constructor(new);
96 struct nl_object *new; local
[all...]

Completed in 615 milliseconds

1234567891011>>