Skip to content

Commit 623faa5

Browse files
committed
Updated TBB (OSX/Win) to 4.2 Update 5, OpenVDB fixes for Windows
1 parent fc90e2c commit 623faa5

File tree

119 files changed

+16
-33961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+16
-33961
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*.DS_Store
1+
*.DS_Store
2+
._*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Nuparu currently consists of:
1818
* [Partio](http://www.disneyanimation.com/technology/partio.html) 1.1.0 (OSX/Win)
1919
* [RMSD](http://boscoh.com/code/) (OSX/Linux/Win)
2020
* [OpenEXR](http://www.openexr.com) 2.1.0 (OSX/Win)
21-
* [TBB](https://www.threadingbuildingblocks.org/) 4.2 Update 4 (OSX/Win)
21+
* [TBB](https://www.threadingbuildingblocks.org/) 4.2 Update 5 (OSX/Win)
2222
* [Zlib](http://www.zlib.net/) 1.2.8 (Win)
2323
* [Boost](www.boost.org) 1.55.0 (OSX/Linux/Win)
2424

include/openvdb/io/Compression.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,12 @@ readCompressedValues(std::istream& is, ValueT* destBuf, Index destCount,
278278
const MaskT& valueMask, bool fromHalf)
279279
{
280280
// Get the stream's compression settings.
281-
const uint32_t compression = getDataCompression(is);
281+
const std::uint32_t compression = getDataCompression(is);
282282
const bool
283283
zipped = compression & COMPRESS_ZIP,
284284
maskCompressed = compression & COMPRESS_ACTIVE_MASK;
285285

286-
int8_t metadata = NO_MASK_AND_ALL_VALS;
286+
std::int8_t metadata = NO_MASK_AND_ALL_VALS;
287287
if (getFormatVersion(is) >= OPENVDB_FILE_VERSION_NODE_MASK_COMPRESSION) {
288288
// Read the flag that specifies what, if any, additional metadata
289289
// (selection mask and/or inactive value(s)) is saved.
@@ -389,7 +389,7 @@ writeCompressedValues(std::ostream& os, ValueT* srcBuf, Index srcCount,
389389
};
390390

391391
// Get the stream's compression settings.
392-
const uint32_t compress = getDataCompression(os);
392+
const std::uint32_t compress = getDataCompression(os);
393393
const bool
394394
zip = compress & COMPRESS_ZIP,
395395
maskCompress = compress & COMPRESS_ACTIVE_MASK;
@@ -398,7 +398,7 @@ writeCompressedValues(std::ostream& os, ValueT* srcBuf, Index srcCount,
398398
ValueT* tempBuf = srcBuf;
399399
boost::scoped_array<ValueT> scopedTempBuf;
400400

401-
int8_t metadata = NO_MASK_AND_ALL_VALS;
401+
std::int8_t metadata = NO_MASK_AND_ALL_VALS;
402402

403403
if (!maskCompress) {
404404
os.write(reinterpret_cast<const char*>(&metadata), /*bytes=*/1);

include/openvdb/math/Vec3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class Vec3: public Tuple<3, T>
207207
/// Length of the vector
208208
T length() const
209209
{
210-
return static_cast<T>(sqrt(double(
210+
return static_cast<T>(std::sqrt(double(
211211
this->mm[0]*this->mm[0] +
212212
this->mm[1]*this->mm[1] +
213213
this->mm[2]*this->mm[2])));

include/openvdb/tree/LeafNode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,13 +1242,13 @@ LeafNode<T,Log2Dim>::readBuffers(std::istream& is, bool fromHalf)
12421242
// Read in the value mask.
12431243
mValueMask.load(is);
12441244

1245-
int8_t numBuffers = 1;
1245+
std::int8_t numBuffers = 1;
12461246
if (io::getFormatVersion(is) < OPENVDB_FILE_VERSION_NODE_MASK_COMPRESSION) {
12471247
// Read in the origin.
12481248
is.read(reinterpret_cast<char*>(&mOrigin), sizeof(Coord::ValueType) * 3);
12491249

12501250
// Read in the number of buffers, which should now always be one.
1251-
is.read(reinterpret_cast<char*>(&numBuffers), sizeof(int8_t));
1251+
is.read(reinterpret_cast<char*>(&numBuffers), sizeof(std::int8_t));
12521252
}
12531253

12541254
io::readCompressedValues(is, mBuffer.mData, SIZE, mValueMask, fromHalf);

include/openvdb/tree/Tree.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,20 +2130,20 @@ Tree<RootNodeType>::print(std::ostream& os, int verboseLevel) const
21302130
os << " Min value: " << minVal << "\n";
21312131
os << " Max value: " << maxVal << "\n";
21322132

2133-
const uint64_t
2133+
const std::uint64_t
21342134
leafCount = *nodeCount.rbegin(),
21352135
numActiveVoxels = this->activeVoxelCount(),
21362136
numActiveLeafVoxels = this->activeLeafVoxelCount();
21372137

21382138
os << " Number of active voxels: " << util::formattedInt(numActiveVoxels) << "\n";
21392139

21402140
Coord dim(0, 0, 0);
2141-
uint64_t totalVoxels = 0;
2141+
std::uint64_t totalVoxels = 0;
21422142
if (numActiveVoxels) { // nonempty
21432143
CoordBBox bbox;
21442144
this->evalActiveVoxelBoundingBox(bbox);
21452145
dim = bbox.extents();
2146-
totalVoxels = dim.x() * uint64_t(dim.y()) * dim.z();
2146+
totalVoxels = dim.x() * std::uint64_t(dim.y()) * dim.z();
21472147

21482148
os << " Bounding box of active voxels: " << bbox << "\n";
21492149
os << " Dimensions of active voxels: "
@@ -2165,7 +2165,7 @@ Tree<RootNodeType>::print(std::ostream& os, int verboseLevel) const
21652165
if (verboseLevel == 2) return;
21662166

21672167
// Memory footprint in bytes
2168-
const uint64_t
2168+
const std::uint64_t
21692169
actualMem = this->memUsage(),
21702170
denseMem = sizeof(ValueType) * totalVoxels,
21712171
voxelsMem = sizeof(ValueType) * numActiveLeafVoxels;

include/serial/tbb/parallel_for.h

Lines changed: 0 additions & 210 deletions
This file was deleted.

include/serial/tbb/tbb_annotate.h

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)