/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 | 38 const uintptr_t ptr_val = reinterpret_cast<uintptr_t>(ptr); in Align() local 39 QCHECK_GE(ptr_val + space, ptr_val) << "Provided space overflows."; in Align() 42 const uintptr_t aligned_ptr_val = ((ptr_val + alignment - 1) & -alignment); in Align() 43 if (aligned_ptr_val > ptr_val + space - size) return nullptr; in Align() 45 const uintptr_t diff = aligned_ptr_val - ptr_val; in Align()
|
/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/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/ |
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/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-project/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-project/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/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | constants.h | 450 uint64_t ptr_val = reinterpret_cast<uint64_t>(p); in add_pointer() local 451 h->push_back(static_cast<uint32_t>(ptr_val >> 32)); in add_pointer() 452 h->push_back(static_cast<uint32_t>(ptr_val)); in add_pointer()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | constants.h | 450 uint64_t ptr_val = reinterpret_cast<uint64_t>(p); in add_pointer() local 451 h->push_back(static_cast<uint32_t>(ptr_val >> 32)); in add_pointer() 452 h->push_back(static_cast<uint32_t>(ptr_val)); in add_pointer()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | constants.h | 450 uint64_t ptr_val = reinterpret_cast<uint64_t>(p); in add_pointer() local 451 h->push_back(static_cast<uint32_t>(ptr_val >> 32)); in add_pointer() 452 h->push_back(static_cast<uint32_t>(ptr_val)); in add_pointer()
|
/external/llvm-project/llvm/test/Transforms/Attributor/ |
D | callbacks.ll | 101 %ptr_val = load i32, i32* %ptr, align 8 102 store i32 %ptr_val, i32* %is_not_null 203 %ptr_val = load i32, i32* %ptr, align 8 204 store i32 %ptr_val, i32* %is_not_null 303 %ptr_val = load i32, i32* %ptr, align 8 304 store i32 %ptr_val, i32* %is_not_null 408 %ptr_val = load i32, i32* %ptr, align 8 409 store i32 %ptr_val, i32* %is_not_null
|