[libc][Obvious] Restore static keyword of a few static methods.
authorSiva Chandra <sivachandra@google.com>
Sat, 21 Jan 2023 00:56:07 +0000 (16:56 -0800)
committerSiva Chandra <sivachandra@google.com>
Sat, 21 Jan 2023 00:57:12 +0000 (16:57 -0800)
The static keyword of the concerned methods was accidentally lost in a
previous commit.

libc/src/__support/FPUtil/aarch64/FEnvImpl.h
libc/src/string/memory_utils/op_aarch64.h

index 213966a..c82d1be 100644 (file)
@@ -51,7 +51,7 @@ struct FEnv {
   static constexpr uint32_t ExceptionStatusFlagsBitPosition = 0;
   static constexpr uint32_t ExceptionControlFlagsBitPosition = 8;
 
-  LIBC_INLINE uint32_t getStatusValueForExcept(int excepts) {
+  LIBC_INLINE static uint32_t getStatusValueForExcept(int excepts) {
     return (excepts & FE_INVALID ? INVALID : 0) |
            (excepts & FE_DIVBYZERO ? DIVBYZERO : 0) |
            (excepts & FE_OVERFLOW ? OVERFLOW : 0) |
@@ -59,7 +59,7 @@ struct FEnv {
            (excepts & FE_INEXACT ? INEXACT : 0);
   }
 
-  LIBC_INLINE int exceptionStatusToMacro(uint32_t status) {
+  LIBC_INLINE static int exceptionStatusToMacro(uint32_t status) {
     return (status & INVALID ? FE_INVALID : 0) |
            (status & DIVBYZERO ? FE_DIVBYZERO : 0) |
            (status & OVERFLOW ? FE_OVERFLOW : 0) |
index d94e7f4..cd64905 100644 (file)
@@ -33,7 +33,7 @@ namespace neon {
 template <size_t Size> struct BzeroCacheLine {
   static constexpr size_t SIZE = Size;
 
-  LIBC_INLINE void block(Ptr dst, uint8_t) {
+  LIBC_INLINE static void block(Ptr dst, uint8_t) {
     static_assert(Size == 64);
 #if __SIZEOF_POINTER__ == 4
     asm("dc zva, %w[dst]" : : [dst] "r"(dst) : "memory");
@@ -42,7 +42,7 @@ template <size_t Size> struct BzeroCacheLine {
 #endif
   }
 
-  LIBC_INLINE void loop_and_tail(Ptr dst, uint8_t value, size_t count) {
+  LIBC_INLINE static void loop_and_tail(Ptr dst, uint8_t value, size_t count) {
     static_assert(Size > 1, "a loop of size 1 does not need tail");
     size_t offset = 0;
     do {