Skip to content

Commit 053e1ec

Browse files
committed
Reset all musl files to be same as upstream
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 691498f commit 053e1ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+203
-264
lines changed

src/hyperlight_guest/third_party/libc/musl/arch/generic/bits/errno.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@
131131
#define EOWNERDEAD 130
132132
#define ENOTRECOVERABLE 131
133133
#define ERFKILL 132
134-
#define EHWPOISON 133
134+
#define EHWPOISON 133

src/hyperlight_guest/third_party/libc/musl/arch/x86_64/atomic_arch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#define a_cas a_cas
32
static inline int a_cas(volatile int *p, int t, int s)
43
{

src/hyperlight_guest/third_party/libc/musl/arch/x86_64/bits/float.h

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,18 @@
33
#else
44
#define FLT_EVAL_METHOD 0
55
#endif
6-
#ifdef _MSC_VER
7-
#define LDBL_EPSILON 2.2204460492503131e-016
8-
#define LDBL_MIN 2.2250738585072014e-308
9-
#define LDBL_MAX 1.7976931348623158e+308
10-
#define LDBL_MANT_DIG 53
11-
#define LDBL_MIN_EXP (-1021)
12-
#define LDBL_MAX_EXP 1024
13-
#define LDBL_DIG 15
14-
#define LDBL_MIN_10_EXP (-307)
15-
#define LDBL_MAX_10_EXP 308
16-
#else
17-
#define LDBL_EPSILON 1.0842021724855044340e-19L
6+
7+
#define LDBL_TRUE_MIN 3.6451995318824746025e-4951L
188
#define LDBL_MIN 3.3621031431120935063e-4932L
199
#define LDBL_MAX 1.1897314953572317650e+4932L
10+
#define LDBL_EPSILON 1.0842021724855044340e-19L
11+
2012
#define LDBL_MANT_DIG 64
2113
#define LDBL_MIN_EXP (-16381)
2214
#define LDBL_MAX_EXP 16384
15+
2316
#define LDBL_DIG 18
2417
#define LDBL_MIN_10_EXP (-4931)
2518
#define LDBL_MAX_10_EXP 4932
26-
#endif
27-
#define LDBL_TRUE_MIN 3.6451995318824746025e-4951L
19+
2820
#define DECIMAL_DIG 21
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define PAGESIZE 4096
1+
#define PAGESIZE 4096

src/hyperlight_guest/third_party/libc/musl/arch/x86_64/bits/stdint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ typedef uint32_t uint_fast32_t;
1717
#define UINTPTR_MAX UINT64_MAX
1818
#define PTRDIFF_MIN INT64_MIN
1919
#define PTRDIFF_MAX INT64_MAX
20-
#define SIZE_MAX UINT64_MAX
20+
#define SIZE_MAX UINT64_MAX

src/hyperlight_guest/third_party/libc/musl/include/alloca.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ void *alloca(size_t);
1616
}
1717
#endif
1818

19-
#endif
19+
#endif

src/hyperlight_guest/third_party/libc/musl/include/assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ _Noreturn void __assert_fail (const char *, const char *, int, const char *);
2020

2121
#ifdef __cplusplus
2222
}
23-
#endif
23+
#endif

src/hyperlight_guest/third_party/libc/musl/include/ctype.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ int toascii(int);
7474
}
7575
#endif
7676

77-
#endif
77+
#endif

src/hyperlight_guest/third_party/libc/musl/include/endian.h

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,12 @@ static __inline uint32_t __bswap32(uint32_t __x)
2525
{
2626
return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
2727
}
28-
#if defined(_MSC_VER)
29-
// TODO: Check these suppressions to see if the warnings can be avoided
30-
#pragma warning (push)
31-
#pragma warning (disable:4554)
32-
#pragma warning (disable:4244)
33-
#endif
28+
3429
static __inline uint64_t __bswap64(uint64_t __x)
3530
{
3631
return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
3732
}
38-
#if defined(_MSC_VER)
39-
#pragma warning (pop)
40-
#endif
33+
4134
#if __BYTE_ORDER == __LITTLE_ENDIAN
4235
#define htobe16(x) __bswap16(x)
4336
#define be16toh(x) __bswap16(x)
@@ -84,4 +77,4 @@ static __inline uint64_t __bswap64(uint64_t __x)
8477
#endif
8578
#endif
8679

87-
#endif
80+
#endif

src/hyperlight_guest/third_party/libc/musl/include/errno.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ extern char *program_invocation_short_name, *program_invocation_name;
2424
#endif
2525

2626
#endif
27+

0 commit comments

Comments
 (0)