/external/ipsec-tools/src/racoon/ |
var.h | 45 ((a) > 0 ? ((a) &~ (sizeof(long) - 1)) : sizeof(long)) 48 ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long)) 50 #define ARRAYLEN(a) (sizeof(a)/sizeof(a[0])) 68 * as sizeof(NULL) would be 4, not 0. Also, gcc-3.4.2+ bombs on it. 79 if (getnameinfo((x), sysdep_sa_len(x), (y), sizeof(y), (z), sizeof(z), \ 82 strncpy((y), "(invalid)", sizeof(y)); [all...] |
/external/skia/src/animator/ |
SkOperandIterpolator.cpp | 30 fStorage = sk_malloc_throw((sizeof(SkOperand) * elemCount + sizeof(SkTimeCode)) * frameCount); 32 fValues = (SkOperand*) ((char*) fStorage + sizeof(SkTimeCode) * frameCount); 44 bool success = ~index == SkTSearch<SkMSec>(&fTimes->fTime, index, time, sizeof(SkTimeCode)); 54 memcpy(dst, values, fElemCount * sizeof(SkOperand)); 70 memcpy(values, nextSrc, fElemCount * sizeof(SkScalar)); 87 memcpy(values, prevSrc, sizeof(SkOperand) * fElemCount); 120 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); 124 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); 128 SkASSERT(memcmp(v, v1, sizeof(v)) == 0) [all...] |
/external/chromium_org/gpu/command_buffer/client/ |
gles2_implementation_unittest_autogen.h | 23 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 35 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 49 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 63 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 77 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 88 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 99 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 110 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 121 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 132 GetExpectedResultMemory(sizeof(cmds::CheckFramebufferStatus::Result)) [all...] |
/external/clang/test/Sema/ |
bitfield.c | 49 (void) sizeof(t->bitX); // expected-error {{invalid application of 'sizeof' to bit-field}} 50 (void) sizeof((t->bitY)); // expected-error {{invalid application of 'sizeof' to bit-field}} 51 (void) sizeof(t->bitX = 4); // not a bitfield designator in C 52 (void) sizeof(t->bitX += 4); // not a bitfield designator in C 53 (void) sizeof((void) 0, t->bitX); // not a bitfield designator in C 54 (void) sizeof(t->var ? t->bitX : t->bitY); // not a bitfield designator in C 55 (void) sizeof(t->var ? t->bitX : t->bitX); // not a bitfield designator in C
|
pragma-pack-5.c | 14 extern int check[sizeof(struct s0) == 6 ? 1 : -1]; 21 extern int check[sizeof(struct s1) == 5 ? 1 : -1]; 29 extern int check[sizeof(struct s2) == 6 ? 1 : -1]; 37 extern int check[sizeof(struct s3) == 8 ? 1 : -1]; 45 extern int check[sizeof(struct s4) == 4 ? 1 : -1];
|
/art/runtime/ |
dex_instruction_visitor_test.cc | 46 v0.Visit(c0, sizeof(c0)); 51 v1.Visit(c1, sizeof(c1)); 56 v2.Visit(c2, sizeof(c2)); 61 v3.Visit(c3, sizeof(c3)); 66 v4.Visit(c4, sizeof(c4));
|
oat.cc | 28 memset(this, 0, sizeof(*this)); 36 memcpy(magic_, kOatMagic, sizeof(kOatMagic)); 37 memcpy(version_, kOatVersion, sizeof(kOatVersion)); 43 UpdateChecksum(&instruction_set_, sizeof(instruction_set_)); 46 UpdateChecksum(&dex_file_count_, sizeof(dex_file_count_)); 49 UpdateChecksum(&image_file_location_oat_checksum_, sizeof(image_file_location_oat_checksum_)); 53 UpdateChecksum(&image_file_location_oat_data_begin_, sizeof(image_file_location_oat_data_begin_)); 56 UpdateChecksum(&image_file_location_size_, sizeof(image_file_location_size_)); 70 if (memcmp(magic_, kOatMagic, sizeof(kOatMagic)) != 0) { 73 if (memcmp(version_, kOatVersion, sizeof(kOatVersion)) != 0) [all...] |
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/ |
socket_test.cc | 40 memset(addr, 0, sizeof(*addr)); 76 socklen_t addrlen = sizeof(addr); 226 memset(outbuf, 1, sizeof(outbuf)); 227 memset(inbuf, 0, sizeof(inbuf)); 233 socklen_t addrlen = sizeof(addr); 237 ki_sendto(sock1_, outbuf, sizeof(outbuf), 0, (sockaddr*) &addr, addrlen); 238 EXPECT_EQ(sizeof(outbuf), len1); 241 EXPECT_NE(0, memcmp(outbuf, inbuf, sizeof(outbuf))); 242 memset(&addr, 0, sizeof(addr)); 246 ki_recvfrom(sock2_, inbuf, sizeof(inbuf), 0, (sockaddr*) &addr, &addrlen) [all...] |
/external/chromium_org/net/quic/ |
port_suggester.cc | 19 COMPILE_ASSERT(sizeof(seed_) < sizeof(hash_bytes), seed_larger_than_hash); 20 memcpy(&seed_, hash_bytes, sizeof(seed_)); 31 sizeof(seed_), hash_bytes); 32 memcpy(&seed_, hash_bytes, sizeof(seed_));
|
/external/chromium_org/third_party/icu/source/test/iotest/ |
iotest.cpp | 44 message.extract(0, message.length(), buffer, sizeof(buffer)); 51 message.extract(0, message.length(), buffer, sizeof(buffer)); 58 message.extract(0, message.length(), buffer, sizeof(buffer)); 89 static char p[sizeof(__FILE__) + 10]; 143 tdpath = (char*) malloc(sizeof(char) *(( strlen(directory) * strlen(tdrelativepath)) + 100)); 203 char cFormat[sizeof(cBuffer)]; 204 char cExpected[sizeof(cBuffer)]; 239 u_memset(uBuffer, 0x2A, sizeof(uBuffer)/sizeof(uBuffer[0])); 240 uBuffer[sizeof(uBuffer)/sizeof(uBuffer[0])-1] = 0 [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_format_zs.c | 122 src_row += src_stride/sizeof(*src_row); 123 dst_row += dst_stride/sizeof(*dst_row); 135 src_row += src_stride/sizeof(*src_row); 136 dst_row += dst_stride/sizeof(*dst_row); 156 src_row += src_stride/sizeof(*src_row); 157 dst_row += dst_stride/sizeof(*dst_row); 178 dst_row += dst_stride/sizeof(*dst_row); 179 src_row += src_stride/sizeof(*src_row); 199 src_row += src_stride/sizeof(*src_row); 200 dst_row += dst_stride/sizeof(*dst_row) [all...] |
/external/clang/test/CXX/expr/expr.unary/expr.sizeof/ |
p5-0x.cpp | 5 static const unsigned value = sizeof...(Types); 9 static const unsigned value = sizeof...(Values); 23 any array[sizeof...(inits)] = { inits... }; 30 static const unsigned value = sizeof...(Value); // expected-error{{'Value' does not refer to the name of a parameter pack}} 35 static const unsigned value = sizeof... Type; // expected-error{{missing parentheses around the size of parameter pack 'Type'}} \
|
/external/clang/test/SemaCXX/ |
alignof-sizeof-reference.cpp | 4 char ar[sizeof(s0&)]; // expected-error {{invalid application of 'sizeof' to an incomplete type}} 9 static_assert(sizeof(r) == 1, "bad size"); 10 static_assert(sizeof(char&) == 1, "bad size"); 16 sizeof(&f); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} \
|
/external/eigen/test/eigen2/ |
eigen2_sizeof.cpp | 16 VERIFY(sizeof(MatrixType)==sizeof(Scalar)*MatrixType::SizeAtCompileTime); 18 VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
|
/external/icu4c/test/iotest/ |
iotest.cpp | 44 message.extract(0, message.length(), buffer, sizeof(buffer)); 51 message.extract(0, message.length(), buffer, sizeof(buffer)); 58 message.extract(0, message.length(), buffer, sizeof(buffer)); 89 static char p[sizeof(__FILE__) + 10]; 143 tdpath = (char*) malloc(sizeof(char) *(( strlen(directory) * strlen(tdrelativepath)) + 100)); 204 char cFormat[sizeof(cBuffer)]; 205 char cExpected[sizeof(cBuffer)]; 240 u_memset(uBuffer, 0x2A, sizeof(uBuffer)/sizeof(uBuffer[0])); 241 uBuffer[sizeof(uBuffer)/sizeof(uBuffer[0])-1] = 0 [all...] |
/external/kernel-headers/original/linux/ |
xattr.h | 18 #define XATTR_OS2_PREFIX_LEN (sizeof (XATTR_OS2_PREFIX) - 1) 21 #define XATTR_SECURITY_PREFIX_LEN (sizeof (XATTR_SECURITY_PREFIX) - 1) 24 #define XATTR_SYSTEM_PREFIX_LEN (sizeof (XATTR_SYSTEM_PREFIX) - 1) 27 #define XATTR_TRUSTED_PREFIX_LEN (sizeof (XATTR_TRUSTED_PREFIX) - 1) 30 #define XATTR_USER_PREFIX_LEN (sizeof (XATTR_USER_PREFIX) - 1)
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_format_zs.c | 122 src_row += src_stride/sizeof(*src_row); 123 dst_row += dst_stride/sizeof(*dst_row); 135 src_row += src_stride/sizeof(*src_row); 136 dst_row += dst_stride/sizeof(*dst_row); 156 src_row += src_stride/sizeof(*src_row); 157 dst_row += dst_stride/sizeof(*dst_row); 178 dst_row += dst_stride/sizeof(*dst_row); 179 src_row += src_stride/sizeof(*src_row); 199 src_row += src_stride/sizeof(*src_row); 200 dst_row += dst_stride/sizeof(*dst_row) [all...] |
/external/valgrind/main/memcheck/tests/ |
metadata.c | 10 int* a = malloc(10 * sizeof(int)); 11 int* b = malloc(10 * sizeof(int)); 12 int* v = malloc(10 * sizeof(int)); 27 res = VALGRIND_GET_VBITS(a, v, 10*sizeof(int) ); 34 res = VALGRIND_SET_VBITS(b, v, 10*sizeof(int) );
|
/frameworks/av/drm/libdrmframework/plugins/common/util/src/ |
MimeTypeUtil.cpp | 72 {MIMETYPE_AUDIO, mime_group_audio, sizeof(mime_group_audio)-1}, 73 {MIMETYPE_APPLICATION, mime_group_application, sizeof(mime_group_application)-1}, 74 {MIMETYPE_IMAGE, mime_group_image, sizeof(mime_group_image)-1}, 75 {MIMETYPE_VIDEO, mime_group_video, sizeof(mime_group_video)-1}, 82 {MIMETYPE_AUDIO, "mp3", sizeof("mp3")-1, mime_type_audio_mpeg}, 83 {MIMETYPE_AUDIO, "x-mpeg", sizeof("x-mpeg")-1, mime_type_audio_mpeg}, 84 {MIMETYPE_AUDIO, "x-mp3", sizeof("x-mp3")-1, mime_type_audio_mpeg}, 85 {MIMETYPE_AUDIO, "mpg", sizeof("mpg")-1, mime_type_audio_mpeg}, 86 {MIMETYPE_AUDIO, "mpg3", sizeof("mpg")-1, mime_type_audio_mpeg}, 87 {MIMETYPE_AUDIO, "x-mpg", sizeof("x-mpg")-1, mime_type_audio_mpeg} [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
xattr.h | 18 #define XATTR_OS2_PREFIX_LEN (sizeof (XATTR_OS2_PREFIX) - 1) 21 #define XATTR_SECURITY_PREFIX_LEN (sizeof (XATTR_SECURITY_PREFIX) - 1) 24 #define XATTR_SYSTEM_PREFIX_LEN (sizeof (XATTR_SYSTEM_PREFIX) - 1) 27 #define XATTR_TRUSTED_PREFIX_LEN (sizeof (XATTR_TRUSTED_PREFIX) - 1) 30 #define XATTR_USER_PREFIX_LEN (sizeof (XATTR_USER_PREFIX) - 1)
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/asm/ |
cmpxchg_32.h | 17 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) 27 #define cmpxchg(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; }) 28 #define cmpxchg_local(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg_local((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; })
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/asm/ |
cmpxchg_32.h | 17 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) 27 #define cmpxchg(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; }) 28 #define cmpxchg_local(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg_local((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; })
|
/prebuilts/ndk/6/platforms/android-9/arch-x86/usr/include/asm/ |
cmpxchg_32.h | 17 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) 27 #define cmpxchg(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; }) 28 #define cmpxchg_local(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg_local((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; })
|
/prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/asm/ |
cmpxchg_32.h | 17 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) 27 #define cmpxchg(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; }) 28 #define cmpxchg_local(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg_local((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; })
|
/prebuilts/ndk/7/platforms/android-9/arch-x86/usr/include/asm/ |
cmpxchg_32.h | 17 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) 27 #define cmpxchg(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; }) 28 #define cmpxchg_local(ptr,o,n) ({ __typeof__(*(ptr)) __ret; if (likely(boot_cpu_data.x86 > 3)) __ret = __cmpxchg_local((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); else __ret = cmpxchg_386((ptr), (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr))); __ret; })
|