2010-05-18 11:58:33 -04:00
|
|
|
/*
|
2010-09-09 08:16:39 -04:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 11:58:33 -04:00
|
|
|
*
|
2010-06-18 12:39:21 -04:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 16:19:40 -04:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 12:39:21 -04:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 16:19:40 -04:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 11:58:33 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2013-12-15 18:32:02 -08:00
|
|
|
#ifndef VPX_MEM_INCLUDE_VPX_MEM_INTRNL_H_
|
|
|
|
#define VPX_MEM_INCLUDE_VPX_MEM_INTRNL_H_
|
2012-12-23 07:20:10 -08:00
|
|
|
#include "./vpx_config.h"
|
2010-05-18 11:58:33 -04:00
|
|
|
|
|
|
|
#define ADDRESS_STORAGE_SIZE sizeof(size_t)
|
|
|
|
|
|
|
|
#ifndef DEFAULT_ALIGNMENT
|
|
|
|
# if defined(VXWORKS)
|
2010-10-27 16:04:02 -07:00
|
|
|
# define DEFAULT_ALIGNMENT 32 /*default addr alignment to use in
|
2012-07-13 15:21:29 -07:00
|
|
|
calls to vpx_* functions other
|
|
|
|
than vpx_memalign*/
|
2010-05-18 11:58:33 -04:00
|
|
|
# else
|
2013-09-06 18:20:10 -07:00
|
|
|
# define DEFAULT_ALIGNMENT (2 * sizeof(void*)) /* NOLINT */
|
2010-05-18 11:58:33 -04:00
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*returns an addr aligned to the byte boundary specified by align*/
|
|
|
|
#define align_addr(addr,align) (void*)(((size_t)(addr) + ((align) - 1)) & (size_t)-(align))
|
|
|
|
|
2013-12-15 18:32:02 -08:00
|
|
|
#endif // VPX_MEM_INCLUDE_VPX_MEM_INTRNL_H_
|