Cycles Refactor: Add SSE Utility code from Embree for cleaner SSE code.
This makes the code a bit easier to understand, and might come in handy if we want to reuse more Embree code. Differential Revision: https://developer.blender.org/D482 Code by Brecht, with fixes by Lockal, Sergey and myself.
This commit is contained in:
@@ -202,7 +202,7 @@ list<Tile>::iterator TileManager::next_background_tile(int device, TileOrder til
|
||||
case TILE_CENTER:
|
||||
distx = centx - (cur_tile.x + cur_tile.w);
|
||||
disty = centy - (cur_tile.y + cur_tile.h);
|
||||
distx = (int64_t) sqrt((double)distx * distx + disty * disty);
|
||||
distx = (int64_t)sqrt((double)(distx * distx + disty * disty));
|
||||
break;
|
||||
case TILE_RIGHT_TO_LEFT:
|
||||
distx = cordx - cur_tile.x;
|
||||
|
Reference in New Issue
Block a user