Commit 8e5a0193 authored by ossy@webkit.org's avatar ossy@webkit.org

ARM buildfix after r155491

https://bugs.webkit.org/show_bug.cgi?id=121152

Reviewed by Anders Carlsson.

FELightingNEON.cpp and FELightingNEON.h is inside COMPILER(GCC) guard, so it's safe to use GCC attribute.

* platform/graphics/cpu/arm/filters/FELightingNEON.cpp: Use __aligned__ GCC attribute directly.
* platform/graphics/cpu/arm/filters/FELightingNEON.h: Use __aligned__ GCC attribute instead of ugly template magic.
(WebCore::FELighting::platformApplyNeon):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2fe6c6d0
2013-09-11 Csaba Osztrogonác <ossy@webkit.org>
ARM buildfix after r155491
https://bugs.webkit.org/show_bug.cgi?id=121152
Reviewed by Anders Carlsson.
FELightingNEON.cpp and FELightingNEON.h is inside COMPILER(GCC) guard, so it's safe to use GCC attribute.
* platform/graphics/cpu/arm/filters/FELightingNEON.cpp: Use __aligned__ GCC attribute directly.
* platform/graphics/cpu/arm/filters/FELightingNEON.h: Use __aligned__ GCC attribute instead of ugly template magic.
(WebCore::FELighting::platformApplyNeon):
2013-09-11 peavo@outlook.com <peavo@outlook.com>
[WinCairo] Compile errors.
......@@ -34,7 +34,8 @@ namespace WebCore {
// These constants are copied to the following SIMD registers:
// ALPHAX_Q ALPHAY_Q REMAPX_D REMAPY_D
static WTF_ALIGNED(short, s_FELightingConstantsForNeon[], 16) = {
static short s_FELightingConstantsForNeon[] __attribute__((__aligned__(16))) = {
// Alpha coefficients.
-2, 1, 0, -1, 2, 1, 0, -1,
0, -1, -2, -1, 0, 1, 2, 1,
......
......@@ -93,13 +93,7 @@ void neonDrawLighting(FELightingPaintingDataForNeon*);
inline void FELighting::platformApplyNeon(LightingData& data, LightSource::PaintingData& paintingData)
{
union {
FELightingFloatArgumentsForNeon floatArguments;
std::aligned_storage<sizeof(FELightingFloatArgumentsForNeon), 16>::type forAlignment;
} alignedArguments;
auto& floatArguments = alignedArguments.floatArguments;
FELightingFloatArgumentsForNeon floatArguments __attribute__((__aligned__(16)));
FELightingPaintingDataForNeon neonData = {
data.pixels->data(),
1,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment