|
| 1 | +//****************************************************************************** |
| 2 | +/// |
| 3 | +/// @file platform/x86/avx2fma3noise.h |
| 4 | +/// |
| 5 | +/// This file contains declarations related to implementations of the noise |
| 6 | +/// generator optimized for the AVX2 and FMA3 instruction set. |
| 7 | +/// |
| 8 | +/// @copyright |
| 9 | +/// @parblock |
| 10 | +/// |
| 11 | +/// Persistence of Vision Ray Tracer ('POV-Ray') version 3.7. |
| 12 | +/// Copyright 1991-2015 Persistence of Vision Raytracer Pty. Ltd. |
| 13 | +/// |
| 14 | +/// POV-Ray is free software: you can redistribute it and/or modify |
| 15 | +/// it under the terms of the GNU Affero General Public License as |
| 16 | +/// published by the Free Software Foundation, either version 3 of the |
| 17 | +/// License, or (at your option) any later version. |
| 18 | +/// |
| 19 | +/// POV-Ray is distributed in the hope that it will be useful, |
| 20 | +/// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | +/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | +/// GNU Affero General Public License for more details. |
| 23 | +/// |
| 24 | +/// You should have received a copy of the GNU Affero General Public License |
| 25 | +/// along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 26 | +/// |
| 27 | +/// ---------------------------------------------------------------------------- |
| 28 | +/// |
| 29 | +/// POV-Ray is based on the popular DKB raytracer version 2.12. |
| 30 | +/// DKBTrace was originally written by David K. Buck. |
| 31 | +/// DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins. |
| 32 | +/// |
| 33 | +/// @endparblock |
| 34 | +/// |
| 35 | +//****************************************************************************** |
| 36 | + |
| 37 | +#ifndef POVRAY_AVX2FMA3NOISE_H |
| 38 | +#define POVRAY_AVX2FMA3NOISE_H |
| 39 | + |
| 40 | +#include "syspovconfigbase.h" |
| 41 | +#include "backend/frame.h" |
| 42 | + |
| 43 | +#ifdef TRY_OPTIMIZED_NOISE_AVX2FMA3 |
| 44 | + |
| 45 | +namespace pov |
| 46 | +{ |
| 47 | + |
| 48 | +bool AVX2FMA3NoiseSupported(); |
| 49 | + |
| 50 | +void AVX2FMA3NoiseInit(); |
| 51 | + |
| 52 | +/// Optimized Noise function using AVX2 and FMA3 instructions. |
| 53 | +/// @author Optimized by Intel |
| 54 | +DBL AVX2FMA3Noise(const Vector3d& EPoint, int noise_generator); |
| 55 | + |
| 56 | +/// Optimized DNoise function using AVX2 and FMA3 instructions. |
| 57 | +/// @author Optimized by Intel |
| 58 | +void AVX2FMA3DNoise(Vector3d& result, const Vector3d& EPoint); |
| 59 | + |
| 60 | +} |
| 61 | + |
| 62 | +#endif // TRY_OPTIMIZED_NOISE_AVX2FMA3 |
| 63 | + |
| 64 | +#endif // POVRAY_AVX2FMA3NOISE_H |
0 commit comments