mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Fix some win32 definitions
You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been cleared out. We might have a working load average for the platform that should help GNU Make work well.
This commit is contained in:
parent
e2e0b042c1
commit
c23b6ecc31
162 changed files with 847 additions and 153 deletions
|
@ -33,28 +33,24 @@ void TearDown(void) {
|
|||
}
|
||||
|
||||
TEST(strtod, testNearest) {
|
||||
if (IsWindows()) return;
|
||||
fesetround(FE_TONEAREST);
|
||||
EXPECT_STREQ("-1.79769313486231e+308",
|
||||
gc(xasprintf("%.15g", strtod("-1.79769313486231e+308", NULL))));
|
||||
}
|
||||
|
||||
TEST(strtod, testDownward) {
|
||||
if (IsWindows()) return;
|
||||
fesetround(FE_DOWNWARD);
|
||||
EXPECT_STREQ("-1.79769313486232e+308",
|
||||
gc(xasprintf("%.15g", strtod("-1.79769313486231e+308", NULL))));
|
||||
}
|
||||
|
||||
TEST(strtod, testUpward) {
|
||||
if (IsWindows()) return;
|
||||
fesetround(FE_UPWARD);
|
||||
EXPECT_STREQ("-1.7976931348623e+308",
|
||||
gc(xasprintf("%.15g", strtod("-1.79769313486231e+308", NULL))));
|
||||
}
|
||||
|
||||
TEST(strtod, testTowardzero) {
|
||||
if (IsWindows()) return;
|
||||
char *p;
|
||||
for (int i = 0; i < 9999; ++i) {
|
||||
fesetround(FE_TOWARDZERO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue