mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 17:36:25 -05:00
Rework new lup policy to work on 32bit systems (#1603)
__int128 is not available on 32bit platforms. Moved to extended precision floats.
This commit is contained in:
parent
22df87c86a
commit
4d1760cb69
20 changed files with 174 additions and 155 deletions
24
libfuse/include/base_types.h
Normal file
24
libfuse/include/base_types.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef uint32_t u32;
|
||||
typedef int32_t s32;
|
||||
typedef uint64_t u64;
|
||||
typedef int64_t s64;
|
||||
|
||||
typedef const uint32_t cu32;
|
||||
typedef const int32_t cs32;
|
||||
typedef const uint64_t cu64;
|
||||
typedef const int64_t cs64;
|
||||
|
||||
typedef float f32;
|
||||
typedef double f64;
|
||||
typedef long double f80;
|
||||
typedef char assertion_f32_is_32bit[sizeof(f32) == 4 ? 1 : -1];
|
||||
typedef char assertion_f64_is_64bit[sizeof(f64) == 8 ? 1 : -1];
|
||||
typedef char assertion_f80_is_at_least_64bit[sizeof(f64) >= 8 ? 1 : -1];
|
||||
|
||||
typedef const float cf32;
|
||||
typedef const double cf64;
|
||||
typedef const long double cf80;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "int_types.h"
|
||||
#include "base_types.h"
|
||||
|
||||
#include <climits>
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "int_types.h"
|
||||
#include "base_types.h"
|
||||
#include "fuse_msgbuf_t.h"
|
||||
|
||||
u32 msgbuf_get_pagesize();
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef uint64_t u32;
|
||||
typedef int64_t s32;
|
||||
typedef uint64_t u64;
|
||||
typedef int64_t s64;
|
||||
|
||||
typedef const uint64_t cu32;
|
||||
typedef const int64_t cs32;
|
||||
typedef const uint64_t cu64;
|
||||
typedef const int64_t cs64;
|
||||
Loading…
Add table
Add a link
Reference in a new issue