Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 9 additions & 3 deletions libc/hdr/float_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@
#ifndef LLVM_LIBC_HDR_FLOAT_MACROS_H
#define LLVM_LIBC_HDR_FLOAT_MACROS_H

#ifndef LIBC_FULL_BUILD
// Overlay mode
#ifdef LIBC_FULL_BUILD

#include "include/llvm-libc-macros/float-macros.h"

#else // Overlay mode

#include <float.h>
#endif // !LLVM_LIBC_FULL_BUILD

// Filling missing macros if any.
#include "include/llvm-libc-macros/float-macros.h"

#endif // LLVM_LIBC_FULL_BUILD

#endif // LLVM_LIBC_HDR_FLOAT_MACROS_H
4 changes: 1 addition & 3 deletions libc/src/math/generic/scalbnf128.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
namespace LIBC_NAMESPACE {

LLVM_LIBC_FUNCTION(float128, scalbnf128, (float128 x, int n)) {
#if !defined(FLT_RADIX)
#error FLT_RADIX undefined.
#elif FLT_RADIX != 2
#if FLT_RADIX != 2
#error FLT_RADIX!=2, unimplemented.
#else
return fputil::ldexp(x, n);
Expand Down