From 03f7a342011a4f69cfcbec7af3e4f1a2e835618b Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 26 Feb 2014 16:29:27 -0500 Subject: Ensure that numeric array storage is aligned to 256-byte boundary. OpenCL devices require this else we would get a performance hit. Change-Id: I6b1db6320fa84f933b6446022a0fd02ba267bf21 --- sal/inc/internal/oslmemory.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sal/inc/internal/oslmemory.h (limited to 'sal/inc') diff --git a/sal/inc/internal/oslmemory.h b/sal/inc/internal/oslmemory.h new file mode 100644 index 000000000000..8ef094ad3cad --- /dev/null +++ b/sal/inc/internal/oslmemory.h @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SAL_INTERNAL_OSLMEMORY_H +#define INCLUDED_SAL_INTERNAL_OSLMEMORY_H + +#include +#include + +#if defined __cplusplus +extern "C" { +#endif + +void* osl_aligned_alloc( sal_Size align, sal_Size size ); + +void osl_aligned_free( void* p ); + +#if defined __cplusplus +} +#endif + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit