Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_hash.h
| Show All 11 Lines | |||||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef __UTIL_HASH_H__ | #ifndef __UTIL_HASH_H__ | ||||
| #define __UTIL_HASH_H__ | #define __UTIL_HASH_H__ | ||||
| #include "util_types.h" | #include "util/util_types.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| ccl_device_inline uint hash_int_2d(uint kx, uint ky) | ccl_device_inline uint hash_int_2d(uint kx, uint ky) | ||||
| { | { | ||||
| #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) | #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) | ||||
| uint a, b, c; | uint a, b, c; | ||||
| Show All 39 Lines | |||||