syclreference.com
  1. SYCL
  2. | API Reference
  3. | Allocators
  4. | is_aligned

is_aligned

Checks whether the pointer points to aligned data


bool is_aligned(void * p, const size_t totalSizeInBytes, const size_t alignment, const size_t requiredSizeMultiplier)
(1)
  1. Checks whether the pointer points to aligned data
    Parameters:
    • void * p : Pointer to allocated data
    • const size_t totalSizeInBytes : Total allocated size of the buffer in bytes
    • const size_t alignment : Memory alignment boundary in bytes.
    • const size_t requiredSizeMultiplier : The requirement for the allocation size to be

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000