Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libc/include/llvm-libc-macros/wchar-macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
#ifndef LLVM_LIBC_MACROS_WCHAR_MACROS_H
#define LLVM_LIBC_MACROS_WCHAR_MACROS_H

#include "../llvm-libc-types/wint_t.h"

#ifndef WEOF
#define WEOF 0xffffffffu
#define WEOF ((wint_t)(0xffffffffu))
#endif

#endif // LLVM_LIBC_MACROS_WCHAR_MACROS_H
3 changes: 2 additions & 1 deletion libc/test/src/math/smoke/RoundToIntegerTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ class RoundToIntegerTestTemplate
}

void testSubnormalRange(RoundToIntegerFunc func) {
constexpr int COUNT = 1'000'001;
// Arbitrary, trades off completeness with testing time (esp. on failure)
constexpr int COUNT = 1'000;
constexpr StorageType STEP = LIBC_NAMESPACE::cpp::max(
static_cast<StorageType>((MAX_SUBNORMAL - MIN_SUBNORMAL) / COUNT),
StorageType(1));
Expand Down
Loading