mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 03:20:30 +00:00
Make improvements
- Introduce portable sched_getcpu() api - Support GCC's __target_clones__ feature - Make fma() go faster on x86 in default mode - Remove some asan checks from core libraries - WinMain() now ensures $HOME and $USER are defined
This commit is contained in:
parent
d5225a693b
commit
2ab9e9f7fd
192 changed files with 2809 additions and 932 deletions
|
@ -42,7 +42,7 @@ double __testlib_ezbenchcontrol(void) {
|
|||
} while (++Tries < 10 && (__testlib_getcore() != Core &&
|
||||
__testlib_getinterrupts() > Interrupts));
|
||||
if (Tries == 10) {
|
||||
tinyprint(2, "warning: failed to accurately benchmark control\n");
|
||||
tinyprint(2, "warning: failed to accurately benchmark control\n", NULL);
|
||||
}
|
||||
strcpy(host, "unknown");
|
||||
gethostname(host, 64);
|
||||
|
|
|
@ -101,7 +101,7 @@ static void testlib_showerror_(int line, //
|
|||
_weaken(kvprintf)(fmt, va);
|
||||
tinyprint(2, "\n", NULL);
|
||||
} else {
|
||||
tinyprint(2, "\t[missing kvprintf]\n");
|
||||
tinyprint(2, "\t[missing kvprintf]\n", NULL);
|
||||
}
|
||||
}
|
||||
tinyprint(2, "\t", SUBTLE, strerror(e), RESET, "\n\t", SUBTLE,
|
||||
|
|
|
@ -167,22 +167,22 @@ void TearDownOnce(void);
|
|||
#define ASSERT_IN(NEEDLE, GOT) \
|
||||
assertContains(FILIFU sizeof(*(NEEDLE)), NEEDLE, GOT, #GOT, true)
|
||||
|
||||
#define ASSERT_BINEQ(WANT, GOT) \
|
||||
_Generic((WANT)[0], char \
|
||||
: assertBinaryEquals_hex, default \
|
||||
: assertBinaryEquals_cp437)(FILIFU WANT, GOT, -1, #GOT, true)
|
||||
#define ASSERT_BINNE(NOPE, GOT) \
|
||||
_Generic((NOPE)[0], char \
|
||||
: assertBinaryNotEquals_hex, default \
|
||||
: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, true)
|
||||
#define ASSERT_BINEQN(WANT, GOT, N) \
|
||||
_Generic((WANT)[0], char \
|
||||
: assertBinaryEquals_hex, default \
|
||||
: assertBinaryEquals_cp437)(FILIFU WANT, GOT, N, #GOT, true)
|
||||
#define ASSERT_BINNEN(NOPE, GOT, N) \
|
||||
_Generic((NOPE)[0], char \
|
||||
: assertBinaryNotEquals_hex, default \
|
||||
: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, true)
|
||||
#define ASSERT_BINEQ(WANT, GOT) \
|
||||
_Generic((WANT)[0], \
|
||||
char: assertBinaryEquals_hex, \
|
||||
default: assertBinaryEquals_cp437)(FILIFU WANT, GOT, -1, #GOT, true)
|
||||
#define ASSERT_BINNE(NOPE, GOT) \
|
||||
_Generic((NOPE)[0], \
|
||||
char: assertBinaryNotEquals_hex, \
|
||||
default: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, true)
|
||||
#define ASSERT_BINEQN(WANT, GOT, N) \
|
||||
_Generic((WANT)[0], \
|
||||
char: assertBinaryEquals_hex, \
|
||||
default: assertBinaryEquals_cp437)(FILIFU WANT, GOT, N, #GOT, true)
|
||||
#define ASSERT_BINNEN(NOPE, GOT, N) \
|
||||
_Generic((NOPE)[0], \
|
||||
char: assertBinaryNotEquals_hex, \
|
||||
default: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, true)
|
||||
|
||||
#define ASSERT_FLOAT_EQ(WANT, GOT) \
|
||||
assertLongDoubleEquals(FILIFU WANT, GOT, #GOT, true)
|
||||
|
@ -243,22 +243,22 @@ void TearDownOnce(void);
|
|||
#define EXPECT_IN(NEEDLE, GOT) \
|
||||
assertContains(FILIFU sizeof(*(NEEDLE)), NEEDLE, GOT, #GOT, false)
|
||||
|
||||
#define EXPECT_BINEQ(WANT, GOT) \
|
||||
_Generic((WANT)[0], char \
|
||||
: assertBinaryEquals_hex, default \
|
||||
: assertBinaryEquals_cp437)(FILIFU WANT, GOT, -1, #GOT, false)
|
||||
#define EXPECT_BINNE(NOPE, GOT) \
|
||||
_Generic((NOPE)[0], char \
|
||||
: assertBinaryNotEquals_hex, default \
|
||||
: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, false)
|
||||
#define EXPECT_BINEQN(WANT, GOT, N) \
|
||||
_Generic((WANT)[0], char \
|
||||
: assertBinaryEquals_hex, default \
|
||||
: assertBinaryEquals_cp437)(FILIFU WANT, GOT, N, #GOT, false)
|
||||
#define EXPECT_BINNEN(NOPE, GOT, N) \
|
||||
_Generic((NOPE)[0], char \
|
||||
: assertBinaryNotEquals_hex, default \
|
||||
: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, false)
|
||||
#define EXPECT_BINEQ(WANT, GOT) \
|
||||
_Generic((WANT)[0], \
|
||||
char: assertBinaryEquals_hex, \
|
||||
default: assertBinaryEquals_cp437)(FILIFU WANT, GOT, -1, #GOT, false)
|
||||
#define EXPECT_BINNE(NOPE, GOT) \
|
||||
_Generic((NOPE)[0], \
|
||||
char: assertBinaryNotEquals_hex, \
|
||||
default: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, false)
|
||||
#define EXPECT_BINEQN(WANT, GOT, N) \
|
||||
_Generic((WANT)[0], \
|
||||
char: assertBinaryEquals_hex, \
|
||||
default: assertBinaryEquals_cp437)(FILIFU WANT, GOT, N, #GOT, false)
|
||||
#define EXPECT_BINNEN(NOPE, GOT, N) \
|
||||
_Generic((NOPE)[0], \
|
||||
char: assertBinaryNotEquals_hex, \
|
||||
default: assertBinaryNotEquals_cp437)(FILIFU NOPE, GOT, -1, #GOT, false)
|
||||
|
||||
#define EXPECT_FLOAT_EQ(WANT, GOT) \
|
||||
assertLongDoubleEquals(FILIFU WANT, GOT, #GOT, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue