/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/ |
D | trt_allocator_test.cc | 35 const intptr_t ptr_val = reinterpret_cast<intptr_t>(ptr); in RunTest() local 36 EXPECT_EQ(0, ptr_val % alignment); in RunTest() 37 EXPECT_GE(ptr_val, orig_ptr_val); in RunTest() 40 EXPECT_EQ(ptr_val + space, orig_ptr_val + orig_space); in RunTest() 50 for (const uintptr_t ptr_val : in TEST() 54 if (ptr_val % alignment == 0) { in TEST() 59 EXPECT_EQ(space >= size, RunTest(alignment, size, ptr_val, space)); in TEST() 62 EXPECT_FALSE(RunTest(alignment, space, ptr_val, space)); in TEST() 63 const uint64_t diff = alignment - ptr_val % alignment; in TEST() 66 RunTest(alignment, space - diff, ptr_val + diff, space - diff)); in TEST() [all …]
|
D | trt_allocator.cc | 40 const uintptr_t ptr_val = reinterpret_cast<uintptr_t>(ptr); in Align() local 41 QCHECK_GE(ptr_val + space, ptr_val) << "Provided space overflows."; in Align() 44 const uintptr_t aligned_ptr_val = ((ptr_val + alignment - 1) & -alignment); in Align() 45 if (aligned_ptr_val > ptr_val + space - size) return nullptr; in Align() 47 const uintptr_t diff = aligned_ptr_val - ptr_val; in Align()
|
/external/strace/tests/ |
D | xet_thread_area_x86.c | 68 set_thread_area(kernel_ulong_t ptr_val, const char *ptr_str, bool valid, in set_thread_area() argument 71 struct user_desc *ptr = (struct user_desc *) (uintptr_t) ptr_val; in set_thread_area() 75 rc = syscall(__NR_set_thread_area, ptr_val); in set_thread_area() 82 printptr(ptr_val, ptr_str); in set_thread_area() 108 get_thread_area(kernel_ulong_t ptr_val, const char *ptr_str, bool valid, in get_thread_area() argument 111 struct user_desc *ptr = (struct user_desc *) (uintptr_t) ptr_val; in get_thread_area() 117 rc = syscall(__NR_get_thread_area, ptr_val); in get_thread_area() 146 printptr(ptr_val, ptr_str); in get_thread_area()
|
/external/strace/tests-m32/ |
D | xet_thread_area_x86.c | 68 set_thread_area(kernel_ulong_t ptr_val, const char *ptr_str, bool valid, in set_thread_area() argument 71 struct user_desc *ptr = (struct user_desc *) (uintptr_t) ptr_val; in set_thread_area() 75 rc = syscall(__NR_set_thread_area, ptr_val); in set_thread_area() 82 printptr(ptr_val, ptr_str); in set_thread_area() 108 get_thread_area(kernel_ulong_t ptr_val, const char *ptr_str, bool valid, in get_thread_area() argument 111 struct user_desc *ptr = (struct user_desc *) (uintptr_t) ptr_val; in get_thread_area() 117 rc = syscall(__NR_get_thread_area, ptr_val); in get_thread_area() 146 printptr(ptr_val, ptr_str); in get_thread_area()
|
/external/strace/tests-mx32/ |
D | xet_thread_area_x86.c | 68 set_thread_area(kernel_ulong_t ptr_val, const char *ptr_str, bool valid, in set_thread_area() argument 71 struct user_desc *ptr = (struct user_desc *) (uintptr_t) ptr_val; in set_thread_area() 75 rc = syscall(__NR_set_thread_area, ptr_val); in set_thread_area() 82 printptr(ptr_val, ptr_str); in set_thread_area() 108 get_thread_area(kernel_ulong_t ptr_val, const char *ptr_str, bool valid, in get_thread_area() argument 111 struct user_desc *ptr = (struct user_desc *) (uintptr_t) ptr_val; in get_thread_area() 117 rc = syscall(__NR_get_thread_area, ptr_val); in get_thread_area() 146 printptr(ptr_val, ptr_str); in get_thread_area()
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | mpx-mini-test.c | 859 unsigned long ptr_val) in mpx_store_dsc_helper() argument 864 : : "c" (ptr_addr), "d" (ptr_val) in mpx_store_dsc_helper() 869 unsigned long ptr_val) in mpx_load_dsc_helper() argument 874 : : "c" (ptr_addr), "d" (ptr_val) in mpx_load_dsc_helper() 1001 __always_inline void stdsc_shadow(int index, uint8_t *ptr, uint8_t *ptr_val) in stdsc_shadow() argument 1005 shadow_map[2] = (unsigned long)ptr_val; in stdsc_shadow() 1007 index, ptr, ptr_val, ptr_val); in stdsc_shadow() 1011 void lddsc_shadow(int index, uint8_t *ptr, uint8_t *ptr_val) in lddsc_shadow() argument 1017 if (value != ptr_val) { in lddsc_shadow() 1020 ptr_val, index, value, ptr_val); in lddsc_shadow()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/NVPTX/ |
D | MachineSink-call.ll | 12 %ptr_val = load i32, i32* %ptr 17 %ptr_val2 = add i32 %ptr_val, 100
|
D | MachineSink-convergent.ll | 12 %ptr_val = load i32, i32* %ptr 17 %ptr_val2 = add i32 %ptr_val, 100
|
/external/llvm/test/CodeGen/NVPTX/ |
D | MachineSink-call.ll | 12 %ptr_val = load i32, i32* %ptr 17 %ptr_val2 = add i32 %ptr_val, 100
|
D | MachineSink-convergent.ll | 12 %ptr_val = load i32, i32* %ptr 17 %ptr_val2 = add i32 %ptr_val, 100
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/ |
D | cortex-a57-misched-ldm-wrback.ll | 31 %ptr_val = ptrtoint i32* %ptr_after to i32 32 %mul1 = mul i32 %ptr_val, %1
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | constants.h | 442 uint64_t ptr_val = reinterpret_cast<uint64_t>(p); in add_pointer() local 443 h->push_back(static_cast<uint32_t>(ptr_val >> 32)); in add_pointer() 444 h->push_back(static_cast<uint32_t>(ptr_val)); in add_pointer()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | constants.h | 442 uint64_t ptr_val = reinterpret_cast<uint64_t>(p); in add_pointer() local 443 h->push_back(static_cast<uint32_t>(ptr_val >> 32)); in add_pointer() 444 h->push_back(static_cast<uint32_t>(ptr_val)); in add_pointer()
|