]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/align/include/boost/align/detail/aligned_alloc_sunos.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / align / include / boost / align / detail / aligned_alloc_sunos.hpp
CommitLineData
7c673cae
FG
1/*
2(c) 2014 Glen Joseph Fernandes
3<glenjofe -at- gmail.com>
4
5Distributed under the Boost Software
6License, Version 1.0.
7http://boost.org/LICENSE_1_0.txt
8*/
9#ifndef BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_SUNOS_HPP
10#define BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_SUNOS_HPP
11
12#include <boost/align/detail/is_alignment.hpp>
13#include <boost/assert.hpp>
14#include <stdlib.h>
15
16namespace boost {
17namespace alignment {
18
19inline void* aligned_alloc(std::size_t alignment, std::size_t size)
20 BOOST_NOEXCEPT
21{
22 BOOST_ASSERT(detail::is_alignment(alignment));
23 return ::memalign(alignment, size);
24}
25
26inline void aligned_free(void* ptr) BOOST_NOEXCEPT
27{
28 ::free(ptr);
29}
30
31} /* .alignment */
32} /* .boost */
33
34#endif