|
1 | 1 | // Copyright Contributors to the OpenVDB Project |
2 | | -// SPDX-License-Identifier: MPL-2.0 |
| 2 | +// SPDX-License-Identifier: Apache-2.0 |
3 | 3 | /// |
4 | 4 | /// @author Nick Avramoussis |
5 | 5 | /// |
|
9 | 9 | /// proof the underlying SIMD wrapper in use, and to provide extended |
10 | 10 | /// functionality (such as traits and matching tuple/scalar API for writing |
11 | 11 | /// generic tools), manual SIMD usage should be restricted to the |
12 | | -/// openvdb::util::simd namespace. |
| 12 | +/// openvdb::simd namespace. |
13 | 13 | /// |
14 | 14 | /// @note OpenVDB currently supports SIMD usage of intel x86 intrinsics via |
15 | 15 | /// Agner Fog's VCL wrapper library. |
16 | 16 | /// |
17 | 17 |
|
18 | | -#ifndef OPENVDB_UTIL_SIMD_HAS_BEEN_INCLUDED |
19 | | -#define OPENVDB_UTIL_SIMD_HAS_BEEN_INCLUDED |
| 18 | +#ifndef OPENVDB_SIMD_SIMD_HAS_BEEN_INCLUDED |
| 19 | +#define OPENVDB_SIMD_SIMD_HAS_BEEN_INCLUDED |
20 | 20 |
|
21 | 21 | #include <openvdb/version.h> |
22 | 22 | #include <openvdb/math/Tuple.h> |
|
55 | 55 | namespace openvdb { |
56 | 56 | OPENVDB_USE_VERSION_NAMESPACE |
57 | 57 | namespace OPENVDB_VERSION_NAME { |
58 | | -namespace util { |
59 | 58 | namespace simd { |
60 | 59 |
|
61 | 60 | #ifdef OPENVDB_USE_VCL |
@@ -355,7 +354,7 @@ template <typename T> struct SimdTraits; // fwd declare |
355 | 354 | /// |
356 | 355 | /// template <typename T> |
357 | 356 | /// T Lerp(const T a, const T b, const T t) { |
358 | | -/// using namespace openvdb::util::simd; |
| 357 | +/// using namespace openvdb::simd; |
359 | 358 | /// return add(mul(sub(T(1), t), a), mul(t, b)); |
360 | 359 | /// } |
361 | 360 |
|
@@ -614,8 +613,7 @@ inline int horizontal_count(const bool a) { return a ? 1 : 0; } |
614 | 613 | #undef OPENVDB_ENABLE_IF_VCL |
615 | 614 |
|
616 | 615 | } // namespace simd |
617 | | -} // namespace util |
618 | 616 | } // namespace OPENVDB_VERSION_NAME |
619 | 617 | } // namespace openvdb |
620 | 618 |
|
621 | | -#endif // OPENVDB_UTIL_SIMD_HAS_BEEN_INCLUDED |
| 619 | +#endif // OPENVDB_SIMD_SIMD_HAS_BEEN_INCLUDED |
0 commit comments