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:
trapexit 2025-12-14 14:56:34 -06:00 • committed by GitHub
parent 22df87c86a
commit 4d1760cb69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 174 additions and 155 deletions

View 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;

View file

@ -1,6 +1,6 @@
#pragma once
#include "int_types.h"
#include "base_types.h"
#include <climits>
#include <string>

View file

@ -18,7 +18,7 @@
#pragma once
#include "int_types.h"
#include "base_types.h"
#include "fuse_msgbuf_t.h"
u32 msgbuf_get_pagesize();

View file

@ -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;