hash.cc
Source references XOR syntaximports tsl/platform/hash.h
SHA-256531d355ebfb4d14da700d51536dc07f8391982debfe1c3d98ae9034fd1d7b8fe
MaleculeH(Db)Md(In₄)
Evidence
1/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#include "tsl/platform/hash.h"
17
18#include <string.h>
19
20#include "xla/tsl/platform/macros.h"
21#include "xla/tsl/platform/types.h"
22#include "tsl/platform/raw_coding.h"
23
24namespace tsl {
⋯4 lines
41 // Initialize the hash to a 'random' value
42 uint32_t h = seed ^ n;
43
44 // Mix 4 bytes at a time into the hash
⋯8 lines