HomeSort by relevance Sort by last modified time
    Searched full:sizeof (Results 51 - 75 of 23619) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/clang/test/SemaCXX/
warn-memset-bad-sizeof.cpp 1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-sizeof-array-argument %s
22 memcpy(&dest, &source, sizeof(dest));
37 memset(&s, 0, sizeof(&s)); // \
38 // expected-warning {{'memset' call operates on objects of type 'S' while the size is based on a different type 'S *'}} expected-note{{did you mean to remove the addressof in the argument to 'sizeof' (and multiply it by the number of elements)?}}
39 memset(ps, 0, sizeof(ps)); // \
40 // expected-warning {{'memset' call operates on objects of type 'S' while the size is based on a different type 'S *'}} expected-note{{did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?}}
41 memset(ps2, 0, sizeof(ps2)); // \
42 // expected-warning {{'memset' call operates on objects of type 'S' while the size is based on a different type 'PS' (aka 'S *')}} expected-note{{did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?}}
43 memset(ps2, 0, sizeof(typeof(ps2))); // \
44 // expected-warning {{argument to 'sizeof' in 'memset' call is the same pointer type}
    [all...]
warn-bad-memaccess.cpp 28 memset(&x1, 0, sizeof x1); // \
31 memset(&x2, 0, sizeof x2); // \
35 memmove(&x1, 0, sizeof x1); // \
38 memmove(0, &x1, sizeof x1); // \
41 memcpy(&x1, 0, sizeof x1); // \
44 memcpy(0, &x1, sizeof x1); // \
47 memcmp(&x1, 0, sizeof x1); // \
50 memcmp(0, &x1, sizeof x1); // \
54 __builtin_memset(&x1, 0, sizeof x1); // \
57 __builtin_memset(&x2, 0, sizeof x2); //
    [all...]
member-pointer-size.cpp 13 typedef int assert1[sizeof(dataMember) == sizeof(ptrdiff_t) ? 1 : -1];
14 typedef int assert2[sizeof(memberFunction) == sizeof(ptrdiff_t) * 2 ? 1 : -1];
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_varsize_struct.py 10 self.assertEqual(sizeof(X), sizeof(c_int) * 2)
14 self.assertEqual(sizeof(x), sizeof(c_int) * 2)
17 new_size = sizeof(X) + sizeof(c_int) * 1
19 self.assertEqual(sizeof(x), new_size)
23 new_size = sizeof(X) + sizeof(c_int) * 9
25 self.assertEqual(sizeof(x), new_size
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_varsize_struct.py 10 self.assertEqual(sizeof(X), sizeof(c_int) * 2)
14 self.assertEqual(sizeof(x), sizeof(c_int) * 2)
17 new_size = sizeof(X) + sizeof(c_int) * 1
19 self.assertEqual(sizeof(x), new_size)
23 new_size = sizeof(X) + sizeof(c_int) * 9
25 self.assertEqual(sizeof(x), new_size
    [all...]
  /external/compiler-rt/lib/sanitizer_common/
sanitizer_common_interceptors_ioctl.inc 46 _(FIOASYNC, READ, sizeof(int));
48 _(FIOGETOWN, WRITE, sizeof(int));
49 _(FIONBIO, READ, sizeof(int));
51 _(FIOSETOWN, READ, sizeof(int));
53 _(SIOCATMARK, WRITE, sizeof(int));
63 _(SIOCGPGRP, WRITE, sizeof(int));
71 _(SIOCSPGRP, READ, sizeof(int));
74 _(TIOCGETD, WRITE, sizeof(int));
77 _(TIOCMBIC, READ, sizeof(int));
78 _(TIOCMBIS, READ, sizeof(int))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/wtf/
SizeLimits.cpp 74 AlignedBuffer<inlineCapacity * sizeof(T), WTF_ALIGN_OF(T)> inlineBuffer;
77 COMPILE_ASSERT(sizeof(OwnPtr<int>) == sizeof(int*), OwnPtr_should_stay_small); member in namespace:WTF
78 COMPILE_ASSERT(sizeof(PassRefPtr<RefCounted<int> >) == sizeof(int*), PassRefPtr_should_stay_small); member in namespace:WTF
79 COMPILE_ASSERT(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted), RefCounted_should_stay_small); member in namespace:WTF
80 COMPILE_ASSERT(sizeof(RefPtr<RefCounted<int> >) == sizeof(int*), RefPtr_should_stay_small); member in namespace:WTF
81 COMPILE_ASSERT(sizeof(Vector<int>) == sizeof(SameSizeAsVectorWithInlineCapacity<int>), Vector_should_stay_small) member in namespace:WTF
82 COMPILE_ASSERT(sizeof(Vector<int, 1>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 1>), Vector_should_stay_small); member in namespace:WTF
83 COMPILE_ASSERT(sizeof(Vector<int, 2>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 2>), Vector_should_stay_small); member in namespace:WTF
84 COMPILE_ASSERT(sizeof(Vector<int, 3>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 3>), Vector_should_stay_small); member in namespace:WTF
    [all...]
  /external/clang/test/Driver/
mips-long-double.c 9 _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong");
12 _Static_assert(sizeof(long double) == 16, "sizeof long double is wrong");
16 _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong");
  /external/valgrind/main/memcheck/tests/
partial_load.c 11 assert(sizeof(long) == sizeof(void*));
14 p = calloc( sizeof(long)-1, 1 );
20 p = calloc( sizeof(long), 1 );
28 p = calloc( sizeof(short)-1, 1 );
34 p = calloc( sizeof(long), 1 );
  /bionic/tests/
netdb_test.cpp 32 memset(&ss, 0, sizeof(ss));
37 socklen_t too_much = sizeof(ss);
38 socklen_t just_right = sizeof(sockaddr_in);
39 socklen_t too_little = sizeof(sockaddr_in) - 1;
41 ASSERT_EQ(0, getnameinfo(sa, too_much, tmp, sizeof(tmp), NULL, 0, NI_NUMERICHOST));
43 ASSERT_EQ(0, getnameinfo(sa, just_right, tmp, sizeof(tmp), NULL, 0, NI_NUMERICHOST));
45 ASSERT_EQ(EAI_FAMILY, getnameinfo(sa, too_little, tmp, sizeof(tmp), NULL, 0, NI_NUMERICHOST));
48 just_right = sizeof(sockaddr_in6);
49 too_little = sizeof(sockaddr_in6) - 1;
52 ASSERT_EQ(0, getnameinfo(sa, too_much, tmp, sizeof(tmp), NULL, 0, NI_NUMERICHOST))
    [all...]
  /external/chromium_org/mojo/public/bindings/generators/cpp_templates/
params_definition 5 return new (buf->Allocate(sizeof($CLASS)))
17 _header_.num_bytes = sizeof(*this);
24 MOJO_COMPILE_ASSERT(sizeof($CLASS) == $SIZE,
  /external/chromium_org/third_party/sqlite/
misalignment.patch 8 sizeof(IcuCursor) + /* IcuCursor */
9 - nChar * sizeof(UChar) + /* IcuCursor.aChar[] */
10 - (nChar+1) * sizeof(int) /* IcuCursor.aOffset[] */
11 + (nChar+1) * sizeof(int) + /* IcuCursor.aOffset[] */
12 + nChar * sizeof(UChar) /* IcuCursor.aChar[] */
17 memset(pCsr, 0, sizeof(IcuCursor));
32 sizeof(IcuCursor) + /* IcuCursor */
33 - nChar * sizeof(UChar) + /* IcuCursor.aChar[] */
34 - (nChar+1) * sizeof(int) /* IcuCursor.aOffset[] */
35 + (nChar+1) * sizeof(int) + /* IcuCursor.aOffset[] *
    [all...]
  /external/clang/test/CodeGenCXX/
new-with-default-arg.cpp 5 void* operator new(__typeof(sizeof(int)));
14 void* operator new(__typeof(sizeof(int)), int = 1, int = 4);
24 void* operator new(__typeof(sizeof(int)), int, int = 4);
  /cts/tests/src/android/renderscript/cts/
sendToClientBlocking.rs 12 rsSendToClientBlocking(ID, &data, sizeof(data));
  /device/generic/goldfish/opengl/system/renderControl_enc/
renderControl.attrib 7 len major sizeof(EGLint)
9 len minor sizeof(EGLint)
21 len numAttribs sizeof(uint32_t)
32 len configs configs_size*sizeof(uint32_t)
  /external/chromium/base/third_party/dmg_fp/
gcc_64_bit.patch 21 -#define PRIVATE_mem ((PRIVATE_MEM+sizeof(double)-1)/sizeof(double))
22 +#define PRIVATE_mem ((unsigned)((PRIVATE_MEM+sizeof(double)-1)/sizeof(double)))
  /external/chromium_org/base/third_party/dmg_fp/
gcc_64_bit.patch 21 -#define PRIVATE_mem ((PRIVATE_MEM+sizeof(double)-1)/sizeof(double))
22 +#define PRIVATE_mem ((unsigned)((PRIVATE_MEM+sizeof(double)-1)/sizeof(double)))
  /external/chromium_org/ppapi/shared_impl/
ppb_gamepad_shared.cc 19 COMPILE_ASSERT(sizeof(output_pad.id) == sizeof(webkit_pad.id),
21 COMPILE_ASSERT(sizeof(output_pad.axes) == sizeof(webkit_pad.axes),
23 COMPILE_ASSERT(sizeof(output_pad.buttons) == sizeof(webkit_pad.buttons),
25 memcpy(output_pad.id, webkit_pad.id, sizeof(output_pad.id));
28 memcpy(output_pad.axes, webkit_pad.axes, sizeof(output_pad.axes));
32 sizeof(output_pad.buttons));
  /external/chromium_org/ui/events/ozone/evdev/
event_device_info.cc 46 memset(ev_bits_, 0, sizeof(ev_bits_));
47 memset(key_bits_, 0, sizeof(key_bits_));
48 memset(rel_bits_, 0, sizeof(rel_bits_));
49 memset(abs_bits_, 0, sizeof(abs_bits_));
50 memset(msc_bits_, 0, sizeof(msc_bits_));
51 memset(sw_bits_, 0, sizeof(sw_bits_));
52 memset(led_bits_, 0, sizeof(led_bits_));
53 memset(prop_bits_, 0, sizeof(prop_bits_));
59 if (!GetEventBits(fd, 0, ev_bits_, sizeof(ev_bits_)))
62 if (!GetEventBits(fd, EV_KEY, key_bits_, sizeof(key_bits_))
    [all...]
  /external/clang/test/ASTMerge/Inputs/
exprs1.c 7 E0_Val4 = sizeof(int*),
exprs2.c 7 E0_Val4 = sizeof(int*),
  /external/clang/test/CodeGen/
2006-09-21-IncompleteElementType.c 3 struct A X[(927 - 37) / sizeof(struct A)];
  /external/clang/test/SemaTemplate/
dependent-sized_array.cpp 6 unsigned numAs = sizeof(a) / sizeof(int);
16 int a3[sizeof(a1)/sizeof(int) != 4? 1 : -1]; // expected-error{{negative}}
  /external/eigen/test/
sizeof.cpp 16 VERIFY(sizeof(MatrixType)==sizeof(Scalar)*size_t(MatrixType::SizeAtCompileTime));
18 VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
32 VERIFY(sizeof(std::complex<float>) == 2*sizeof(float));
33 VERIFY(sizeof(std::complex<double>) == 2*sizeof(double));
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/
stdint_h.pass.cpp 23 static_assert(sizeof(int8_t)*CHAR_BIT == 8,
24 "sizeof(int8_t)*CHAR_BIT == 8");
28 static_assert(sizeof(int16_t)*CHAR_BIT == 16,
29 "sizeof(int16_t)*CHAR_BIT == 16");
33 static_assert(sizeof(int32_t)*CHAR_BIT == 32,
34 "sizeof(int32_t)*CHAR_BIT == 32");
38 static_assert(sizeof(int64_t)*CHAR_BIT == 64,
39 "sizeof(int64_t)*CHAR_BIT == 64");
44 static_assert(sizeof(uint8_t)*CHAR_BIT == 8,
45 "sizeof(uint8_t)*CHAR_BIT == 8")
    [all...]

Completed in 908 milliseconds

1 23 4 5 6 7 8 91011>>