HomeSort by relevance Sort by last modified time
    Searched defs:new (Results 51 - 75 of 437) sorted by null

1 23 4 5 6 7 8 91011>>

  /ndk/tests/device/test-stlport_static-exception/jni/
new23.cpp 6 inline void *operator new (size_t, void *p) throw () { return p; }
13 unsigned *data = new unsigned[2 * num];
16 (i % 2 == 0) ? new (ptr) unsigned (2) : new (ptr++) unsigned (1);
new6.cpp 2 // Test that we properly default-initialize the new int when () is given.
4 #include <new>
11 void *operator new (size_t size) throw (bad_alloc)
21 int *p = new int();
operators23.cpp 3 // opr-new file
6 // Subject: g++-2.3.1 : Incorrectly calls overloaded operator new
17 void *operator new(size_t size) throw();
25 void *blah::operator new(size_t size) throw(){
34 blahPtr = new blah[100];
operators27.cpp 3 // opr-new file
6 // Subject: G++ 2.4.3 and operator new
11 #include <new>
16 void * operator new(size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; }
29 K * pK = new (std::nothrow) K( 10);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
sha.py 11 new = sha variable
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
sha.py 11 new = sha variable
  /external/clang/test/CXX/expr/expr.unary/expr.new/
p19.cpp 4 // Operator delete template for placement new with global lookup
9 static void* operator new(size_t) {
19 // Using the global operator new suppresses the search for a
21 ::new X0<2>;
23 new X0<3>; // expected-note 2{{instantiation}}
26 // Operator delete template for placement new[] with global lookup
31 static void* operator new[](size_t) {
41 // Using the global operator new suppresses the search for a
43 ::new X1<2> [17];
45 new X1<3> [17]; // expected-note 2{{instantiation}
    [all...]
  /external/clang/test/SemaCXX/
warn-new-overaligned.cpp 15 new Test; // expected-warning {{type 'test1::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
16 new Test[10]; // expected-warning {{type 'test1::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
28 new Test; // expected-warning {{type 'test2::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
29 new Test[10]; // expected-warning {{type 'test2::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
40 void* operator new(unsigned long) {
49 new Test;
50 new Test[10]; // expected-warning {{type 'test3::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
61 void* operator new[](unsigned long) {
70 new Test; // expected-warning {{type 'test4::Test' requires 256 bytes of alignment and the default allocator only guarantees}}
71 new Test[10]
    [all...]
  /external/compiler-rt/lib/asan/
asan_new_delete.cc 12 // Interceptors for operators new and delete.
30 // On Android new() goes through malloc interceptors.
34 // Fake std::nothrow_t to avoid including <new>.
43 // On OS X it's not enough to just provide our own 'operator new' and
46 // dylib and libstdc++, each of those'll have its implementation of new and
52 void *operator new(size_t size) { OPERATOR_NEW_BODY(FROM_NEW); }
54 void *operator new[](size_t size) { OPERATOR_NEW_BODY(FROM_NEW_BR); }
56 void *operator new(size_t size, std::nothrow_t const&)
59 void *operator new[](size_t size, std::nothrow_t const&)
  /external/compiler-rt/lib/msan/
msan_new_delete.cc 12 // Interceptors for operators new and delete.
30 // Fake std::nothrow_t to avoid including <new>.
40 void *operator new(size_t size) { OPERATOR_NEW_BODY; }
41 void *operator new[](size_t size) { OPERATOR_NEW_BODY; }
42 void *operator new(size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
43 void *operator new[](size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; }
  /external/oprofile/libutil++/tests/
utility_tests.cpp 13 #include <new>
24 void* operator new(size_t size) throw(bad_alloc)
30 void* operator new[](size_t size) throw(bad_alloc)
54 cerr << "new(size_t) leak\n";
59 cerr << "new[](size_t) leak\n";
70 scoped_ptr<A> a(new A);
72 scoped_ptr<A> a(new A);
83 scoped_array<A> b(new A[10]);
85 scoped_array<A> a(new A[10]);
  /external/valgrind/main/massif/tests/
overloaded-new.cpp 1 // operator new(unsigned)
2 // operator new[](unsigned)
3 // operator new(unsigned, std::nothrow_t const&)
4 // operator new[](unsigned, std::nothrow_t const&)
8 #include <new>
17 __attribute__((noinline)) void* operator new (std::size_t n) throw (std::bad_alloc)
22 __attribute__((noinline)) void* operator new (std::size_t n, std::nothrow_t const &) throw ()
27 __attribute__((noinline)) void* operator new[] (std::size_t n) throw (std::bad_alloc)
32 __attribute__((noinline)) void* operator new[] (std::size_t n, std::nothrow_t const &) throw ()
49 s* p1 = new s
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
new.cpp 1 //===--------------------------- new.cpp ----------------------------------===//
12 #include "new"
23 // shared libray. The global holding the current new handler is
36 // Implement all new and delete operators as weak definitions
42 operator new(std::size_t size)
69 operator new(size_t size, const std::nothrow_t&) _NOEXCEPT
76 p = ::operator new(size);
88 operator new[](size_t size)
93 return ::operator new(size);
98 operator new[](size_t size, const std::nothrow_t&) _NOEXCEP
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/scripts/
InFilesCompiler.pm 74 sub new() subroutine
109 my $file = new IO::File;
112 my $InParser = InFilesParser->new();
  /external/chromium_org/third_party/libjingle/source/talk/base/
scoped_autorelease_pool.h 29 // an instance of this class using "new" - that will result in a compile-time
59 // Declaring private overrides of new and delete here enforces the "only use
62 // Note: new is declared as "throw()" to get around a gcc warning about new
65 void* operator new(size_t size) throw() { return NULL; }
  /external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/
radeon_list.c 37 struct rc_list * new = memory_pool_malloc(pool, sizeof(struct rc_list)); local
38 new->Item = item;
39 new->Next = NULL;
40 new->Prev = NULL;
42 return new;
  /external/chromium_org/third_party/mesa/src/src/glsl/
glsl_symbol_table.h 29 #include <new>
54 /* Callers of this ralloc-based new need not call delete. It's
56 static void* operator new(size_t size, void *ctx)
  /external/chromium_org/third_party/tlslite/tlslite/utils/
PyCrypto_AES.py 9 def new(key, mode, IV): function
16 self.context = Crypto.Cipher.AES.new(key, mode, IV)
PyCrypto_RC4.py 9 def new(key): function
16 self.context = Crypto.Cipher.ARC4.new(key)
PyCrypto_TripleDES.py 9 def new(key, mode, IV): function
16 self.context = Crypto.Cipher.DES3.new(key, mode, IV)
hmac.py 25 """Create a new HMAC object.
39 self.outer = digestmod.new()
40 self.inner = digestmod.new()
48 key = digestmod.new(key).digest()
93 def new(key, msg = None, digestmod = None): function
94 """Create a new hashing object and return it.
  /external/ipsec-tools/src/racoon/
throttle.c 124 * No match, if auth failed, allocate a new throttle entry
144 time_t new; local
147 new = remaining + isakmp_cfg_config.auth_throttle;
149 if (new > THROTTLE_PENALTY_MAX)
150 new = THROTTLE_PENALTY_MAX;
152 te->penalty = now + new;
vmbuf.c 124 vchar_t *new; local
131 if ((new = vmalloc(src->l)) == NULL)
134 memcpy(new->v, src->v, src->l);
136 return new;
  /external/llvm/include/llvm/IR/
GlobalAlias.h 38 void *operator new(size_t s) {
39 return User::operator new(s, 1);
  /external/mesa3d/src/gallium/drivers/r300/compiler/
radeon_list.c 37 struct rc_list * new = memory_pool_malloc(pool, sizeof(struct rc_list)); local
38 new->Item = item;
39 new->Next = NULL;
40 new->Prev = NULL;
42 return new;

Completed in 544 milliseconds

1 23 4 5 6 7 8 91011>>