Blender Git Commit Log

Git Commits -> Revision 803337f

Revision 803337f by Sergey Sharybin (master)
May 19, 2017, 10:41 (GMT)
;115;0cCycles: Cleanup, use ccl_restrict instead of ccl_restrict_ptr

There were following issues with ccl_restrict_ptr:

- We already had ccl_restrict for all platforms.

- It was secretly adding `const` qualifier to the declaration,
which is quite weird since non-const pointer can also be
declared as restricted.

- We never in Blender are using foo_ptr or FooPtr type definitions,
so not sure why we should introduce such a thing here.

- It is absolutely wrong from semantic point of view to put pointer
into the restrict macro -- const is a part of type, not part of
hint for compiler that some pointer is never aliased.

Commit Details:

Full Hash: 803337f3f64fed240e9adc6f286d5f9d13a5026a
Parent Commit: 8e65544
Lines Changed: +113, -72

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2017