mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Rename CK classes to AS classes
This commit is contained in:
committed by
Levi McCallum
parent
de66819286
commit
a0c05ebffc
26
AsyncDisplayKit/ASEqualityHashHelpers.mm
Normal file
26
AsyncDisplayKit/ASEqualityHashHelpers.mm
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
*/
|
||||
|
||||
#import "ASEqualityHashHelpers.h"
|
||||
|
||||
#import <functional>
|
||||
#import <objc/runtime.h>
|
||||
#import <stdio.h>
|
||||
#import <string>
|
||||
|
||||
NSUInteger CKIntegerArrayHash(const NSUInteger *subhashes, NSUInteger count)
|
||||
{
|
||||
uint64_t result = subhashes[0];
|
||||
for (int ii = 1; ii < count; ++ii) {
|
||||
result = CKHashCombine(result, subhashes[ii]);
|
||||
}
|
||||
return CKHash64ToNative(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user