2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
12 #ifndef VPX_MEM_INCLUDE_VPX_MEM_INTRNL_H_
13 #define VPX_MEM_INCLUDE_VPX_MEM_INTRNL_H_
14 #include "./vpx_config.h"
16 #define ADDRESS_STORAGE_SIZE sizeof(size_t)
18 #ifndef DEFAULT_ALIGNMENT
20 # define DEFAULT_ALIGNMENT 32 /*default addr alignment to use in
21 calls to vpx_* functions other
24 # define DEFAULT_ALIGNMENT (2 * sizeof(void*)) /* NOLINT */
28 /*returns an addr aligned to the byte boundary specified by align*/
29 #define align_addr(addr,align) (void*)(((size_t)(addr) + ((align) - 1)) & (size_t)-(align))
31 #endif // VPX_MEM_INCLUDE_VPX_MEM_INTRNL_H_