// Copyright 2009-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "platform.h" #include "alloc.h" namespace embree { /*! static array with static size */ template<typename T, size_t N> class array_t { … }; /*! static array with dynamic size */ template<typename T, size_t N> class darray_t { … }; /*! dynamic sized array that is allocated on the stack */ #define dynamic_large_stack_array(Ty,Name,N,max_stack_bytes) … template<typename Ty, size_t max_stack_bytes> struct __aligned(64) StackArray { … }; /*! dynamic sized array that is allocated on the stack */ template<typename Ty, size_t max_stack_elements, size_t max_total_elements> struct __aligned(64) DynamicStackArray { … }; }