mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05:00
Further conversions from 32 to 64 bits
This commit is contained in:
parent
bbd3c23cd2
commit
f40b2decdb
30 changed files with 251 additions and 156 deletions
|
|
@ -875,7 +875,7 @@ int file_block_is_last(struct snapraid_file* file, block_off_t file_pos);
|
|||
* Get the size in bytes of the block.
|
||||
* If it's the last block of a file it could be less than block_size.
|
||||
*/
|
||||
unsigned file_block_size(struct snapraid_file* file, block_off_t file_pos, unsigned block_size);
|
||||
size_t file_block_size(struct snapraid_file* file, block_off_t file_pos, size_t block_size);
|
||||
|
||||
/**
|
||||
* Compare a file with an inode.
|
||||
|
|
@ -931,7 +931,7 @@ static inline tommy_uint32_t file_path_hash(const char* sub)
|
|||
*/
|
||||
static inline tommy_uint32_t file_stamp_hash(data_off_t size, int64_t mtime_sec, int mtime_nsec)
|
||||
{
|
||||
return tommy_inthash_u32((tommy_uint32_t)size ^ tommy_inthash_u32(mtime_sec ^ tommy_inthash_u32(mtime_nsec)));
|
||||
return tommy_inthash_u32((tommy_uint32_t)size ^ tommy_inthash_u32((tommy_uint32_t)mtime_sec ^ tommy_inthash_u32(mtime_nsec)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue