Skip to content

Commit 408bb4d

Browse files
[libc] Wrong guards for totalorderbf16 and totalordermagbf16 (#188241)
Currently the guards for `totalorderbf16` and `totalordermagbf16` are as follows: ``` #ifndef LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H #define LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H - #endif // LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H ``` and ``` #ifndef LLVM_LIBC_SRC_MATH_TOTALORDERF16_H #define LLVM_LIBC_SRC_MATH_TOTALORDERF16_H - #endif // LLVM_LIBC_SRC_MATH_TOTALORDERF16_H ``` As we can see these are for F16 and not BF16 . This Pr intends to fix that with correct guards as `TOTALORDERBF16` and `TOTALORDERMAGBF16`
1 parent 9999f7f commit 408bb4d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libc/src/math/totalorderbf16.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LLVM_LIBC_SRC_MATH_TOTALORDERF16_H
10-
#define LLVM_LIBC_SRC_MATH_TOTALORDERF16_H
9+
#ifndef LLVM_LIBC_SRC_MATH_TOTALORDERBF16_H
10+
#define LLVM_LIBC_SRC_MATH_TOTALORDERBF16_H
1111

1212
#include "src/__support/macros/config.h"
1313
#include "src/__support/macros/properties/types.h"
@@ -18,4 +18,4 @@ int totalorderbf16(const bfloat16 *x, const bfloat16 *y);
1818

1919
} // namespace LIBC_NAMESPACE_DECL
2020

21-
#endif // LLVM_LIBC_SRC_MATH_TOTALORDERF16_H
21+
#endif // LLVM_LIBC_SRC_MATH_TOTALORDERBF16_H

libc/src/math/totalordermagbf16.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H
10-
#define LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H
9+
#ifndef LLVM_LIBC_SRC_MATH_TOTALORDERMAGBF16_H
10+
#define LLVM_LIBC_SRC_MATH_TOTALORDERMAGBF16_H
1111

1212
#include "src/__support/macros/config.h"
1313
#include "src/__support/macros/properties/types.h"
@@ -18,4 +18,4 @@ int totalordermagbf16(const bfloat16 *x, const bfloat16 *y);
1818

1919
} // namespace LIBC_NAMESPACE_DECL
2020

21-
#endif // LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H
21+
#endif // LLVM_LIBC_SRC_MATH_TOTALORDERMAGBF16_H

0 commit comments

Comments
 (0)