[libc-commits] [libc] [libc][stdfix][NFC] Clean up include paths and CMake dependencies (PR #241414)

Jaeyong Lee via libc-commits libc-commits at lists.llvm.org
Wed Nov 11 09:50:36 PST 2026


https://github.com/npmania created https://github.com/llvm/llvm-project/pull/241414

Use paths relative to libc/ and match direct includes with CMake DEPENDS.

Follows https://github.com/llvm/llvm-project/pull/240631#discussion_r4532148128.
Follows https://github.com/llvm/llvm-project/pull/240253#issuecomment-6741353320.

LLM assisted.

>From c008e4702e6188611948cce08573b157302cc014 Mon Sep 17 00:00:00 2001
From: Jaeyong Lee <jay at glendalab.com>
Date: Thu, 12 Nov 2026 02:24:28 +0900
Subject: [PATCH] [libc][stdfix][NFC] Clean up include paths and CMake
 dependencies

Use paths relative to libc/ and match direct includes with CMake DEPENDS.

Follows https://github.com/llvm/llvm-project/pull/240631#discussion_r4532148128.
Follows https://github.com/llvm/llvm-project/pull/240253#issuecomment-6741353320.

LLM assisted.
---
 libc/src/__support/fixed_point/CMakeLists.txt | 16 +++---
 libc/src/__support/fixed_point/fx_bits.h      |  6 +--
 libc/src/__support/fixed_point/sqrt.h         |  5 +-
 libc/src/stdfix/CMakeLists.txt                | 15 ++++--
 libc/src/stdfix/abshk.cpp                     |  2 +-
 libc/src/stdfix/abshr.cpp                     |  2 +-
 libc/src/stdfix/absk.cpp                      |  2 +-
 libc/src/stdfix/abslk.cpp                     |  2 +-
 libc/src/stdfix/abslr.cpp                     |  2 +-
 libc/src/stdfix/absr.cpp                      |  2 +-
 libc/src/stdfix/bitshk.cpp                    |  2 +-
 libc/src/stdfix/bitshr.cpp                    |  2 +-
 libc/src/stdfix/bitsk.cpp                     |  2 +-
 libc/src/stdfix/bitslk.cpp                    |  2 +-
 libc/src/stdfix/bitslr.cpp                    |  2 +-
 libc/src/stdfix/bitsr.cpp                     |  2 +-
 libc/src/stdfix/bitsuhk.cpp                   |  2 +-
 libc/src/stdfix/bitsuhr.cpp                   |  2 +-
 libc/src/stdfix/bitsuk.cpp                    |  2 +-
 libc/src/stdfix/bitsulk.cpp                   |  2 +-
 libc/src/stdfix/bitsulr.cpp                   |  2 +-
 libc/src/stdfix/bitsur.cpp                    |  2 +-
 libc/src/stdfix/countlshk.cpp                 |  2 +-
 libc/src/stdfix/countlshr.cpp                 |  2 +-
 libc/src/stdfix/countlsk.cpp                  |  2 +-
 libc/src/stdfix/countlslk.cpp                 |  2 +-
 libc/src/stdfix/countlslr.cpp                 |  2 +-
 libc/src/stdfix/countlsr.cpp                  |  2 +-
 libc/src/stdfix/countlsuhk.cpp                |  2 +-
 libc/src/stdfix/countlsuhr.cpp                |  2 +-
 libc/src/stdfix/countlsuk.cpp                 |  2 +-
 libc/src/stdfix/countlsulk.cpp                |  2 +-
 libc/src/stdfix/countlsulr.cpp                |  2 +-
 libc/src/stdfix/countlsur.cpp                 |  2 +-
 libc/src/stdfix/divik.cpp                     |  2 +-
 libc/src/stdfix/divilk.cpp                    |  2 +-
 libc/src/stdfix/divilr.cpp                    |  2 +-
 libc/src/stdfix/divir.cpp                     |  2 +-
 libc/src/stdfix/diviuk.cpp                    |  2 +-
 libc/src/stdfix/diviulk.cpp                   |  2 +-
 libc/src/stdfix/diviulr.cpp                   |  2 +-
 libc/src/stdfix/diviur.cpp                    |  2 +-
 libc/src/stdfix/exphk.cpp                     |  5 +-
 libc/src/stdfix/expk.cpp                      |  5 +-
 libc/src/stdfix/hkbits.cpp                    |  4 +-
 libc/src/stdfix/hrbits.cpp                    |  4 +-
 libc/src/stdfix/idivk.cpp                     |  2 +-
 libc/src/stdfix/idivlk.cpp                    |  2 +-
 libc/src/stdfix/idivlr.cpp                    |  2 +-
 libc/src/stdfix/idivr.cpp                     |  2 +-
 libc/src/stdfix/idivuk.cpp                    |  2 +-
 libc/src/stdfix/idivulk.cpp                   |  2 +-
 libc/src/stdfix/idivulr.cpp                   |  2 +-
 libc/src/stdfix/idivur.cpp                    |  2 +-
 libc/src/stdfix/kbits.cpp                     |  4 +-
 libc/src/stdfix/kdivi.cpp                     |  3 +-
 libc/src/stdfix/lkbits.cpp                    |  4 +-
 libc/src/stdfix/lkdivi.cpp                    |  3 +-
 libc/src/stdfix/lrbits.cpp                    |  4 +-
 libc/src/stdfix/lrdivi.cpp                    |  3 +-
 libc/src/stdfix/mulik.cpp                     |  2 +-
 libc/src/stdfix/mulilk.cpp                    |  2 +-
 libc/src/stdfix/mulilr.cpp                    |  2 +-
 libc/src/stdfix/mulir.cpp                     |  2 +-
 libc/src/stdfix/muliuk.cpp                    |  2 +-
 libc/src/stdfix/muliulk.cpp                   |  2 +-
 libc/src/stdfix/muliulr.cpp                   |  2 +-
 libc/src/stdfix/muliur.cpp                    |  2 +-
 libc/src/stdfix/rbits.cpp                     |  4 +-
 libc/src/stdfix/rdivi.cpp                     |  3 +-
 libc/src/stdfix/roundhk.cpp                   |  2 +-
 libc/src/stdfix/roundhr.cpp                   |  2 +-
 libc/src/stdfix/roundk.cpp                    |  2 +-
 libc/src/stdfix/roundlk.cpp                   |  2 +-
 libc/src/stdfix/roundlr.cpp                   |  2 +-
 libc/src/stdfix/roundr.cpp                    |  2 +-
 libc/src/stdfix/rounduhk.cpp                  |  2 +-
 libc/src/stdfix/rounduhr.cpp                  |  2 +-
 libc/src/stdfix/rounduk.cpp                   |  2 +-
 libc/src/stdfix/roundulk.cpp                  |  2 +-
 libc/src/stdfix/roundulr.cpp                  |  2 +-
 libc/src/stdfix/roundur.cpp                   |  2 +-
 libc/src/stdfix/sqrtuhk.cpp                   |  2 +-
 libc/src/stdfix/sqrtuhr.cpp                   |  2 +-
 libc/src/stdfix/sqrtuk.cpp                    |  2 +-
 libc/src/stdfix/sqrtulr.cpp                   |  2 +-
 libc/src/stdfix/sqrtur.cpp                    |  2 +-
 libc/src/stdfix/uhkbits.cpp                   |  4 +-
 libc/src/stdfix/uhksqrtus.cpp                 |  2 +-
 libc/src/stdfix/uhrbits.cpp                   |  4 +-
 libc/src/stdfix/ukbits.cpp                    |  4 +-
 libc/src/stdfix/ukdivi.cpp                    |  3 +-
 libc/src/stdfix/uksqrtui.cpp                  |  2 +-
 libc/src/stdfix/ulkbits.cpp                   |  4 +-
 libc/src/stdfix/ulkdivi.cpp                   |  3 +-
 libc/src/stdfix/ulrbits.cpp                   |  4 +-
 libc/src/stdfix/ulrdivi.cpp                   |  3 +-
 libc/src/stdfix/urbits.cpp                    |  4 +-
 libc/src/stdfix/urdivi.cpp                    |  3 +-
 .../src/__support/fixed_point/CMakeLists.txt  |  3 ++
 .../__support/fixed_point/fx_bits_test.cpp    |  2 +
 libc/test/src/stdfix/CMakeLists.txt           | 54 +++++++++----------
 libc/test/src/stdfix/DiviFxTest.h             |  3 +-
 libc/test/src/stdfix/ExpTest.h                |  4 --
 libc/test/src/stdfix/FxBitsTest.h             |  4 +-
 libc/test/src/stdfix/FxDiviTest.h             |  3 +-
 libc/test/src/stdfix/ISqrtTest.h              |  2 -
 libc/test/src/stdfix/IdivFxTest.h             |  4 +-
 libc/test/src/stdfix/MuliFxTest.h             |  2 +-
 libc/test/src/stdfix/SqrtTest.h               |  1 -
 libc/test/src/stdfix/abshk_test.cpp           |  2 +-
 libc/test/src/stdfix/abshr_test.cpp           |  2 +-
 libc/test/src/stdfix/absk_test.cpp            |  2 +-
 libc/test/src/stdfix/abslk_test.cpp           |  2 +-
 libc/test/src/stdfix/abslr_test.cpp           |  2 +-
 libc/test/src/stdfix/absr_test.cpp            |  2 +-
 libc/test/src/stdfix/bitshk_test.cpp          |  4 +-
 libc/test/src/stdfix/bitshr_test.cpp          |  4 +-
 libc/test/src/stdfix/bitsk_test.cpp           |  4 +-
 libc/test/src/stdfix/bitslk_test.cpp          |  4 +-
 libc/test/src/stdfix/bitslr_test.cpp          |  4 +-
 libc/test/src/stdfix/bitsr_test.cpp           |  4 +-
 libc/test/src/stdfix/bitsuhk_test.cpp         |  4 +-
 libc/test/src/stdfix/bitsuhr_test.cpp         |  4 +-
 libc/test/src/stdfix/bitsuk_test.cpp          |  4 +-
 libc/test/src/stdfix/bitsulk_test.cpp         |  4 +-
 libc/test/src/stdfix/bitsulr_test.cpp         |  4 +-
 libc/test/src/stdfix/bitsur_test.cpp          |  4 +-
 libc/test/src/stdfix/countlshk_test.cpp       |  2 +-
 libc/test/src/stdfix/countlshr_test.cpp       |  2 +-
 libc/test/src/stdfix/countlsk_test.cpp        |  2 +-
 libc/test/src/stdfix/countlslk_test.cpp       |  2 +-
 libc/test/src/stdfix/countlslr_test.cpp       |  2 +-
 libc/test/src/stdfix/countlsr_test.cpp        |  2 +-
 libc/test/src/stdfix/countlsuhk_test.cpp      |  2 +-
 libc/test/src/stdfix/countlsuhr_test.cpp      |  2 +-
 libc/test/src/stdfix/countlsuk_test.cpp       |  2 +-
 libc/test/src/stdfix/countlsulk_test.cpp      |  2 +-
 libc/test/src/stdfix/countlsulr_test.cpp      |  2 +-
 libc/test/src/stdfix/countlsur_test.cpp       |  2 +-
 libc/test/src/stdfix/divik_test.cpp           |  4 +-
 libc/test/src/stdfix/divilk_test.cpp          |  4 +-
 libc/test/src/stdfix/divilr_test.cpp          |  4 +-
 libc/test/src/stdfix/divir_test.cpp           |  4 +-
 libc/test/src/stdfix/diviuk_test.cpp          |  4 +-
 libc/test/src/stdfix/diviulk_test.cpp         |  4 +-
 libc/test/src/stdfix/diviulr_test.cpp         |  4 +-
 libc/test/src/stdfix/diviur_test.cpp          |  4 +-
 libc/test/src/stdfix/exphk_test.cpp           |  2 +-
 libc/test/src/stdfix/expk_test.cpp            |  2 +-
 libc/test/src/stdfix/hkbits_test.cpp          |  3 +-
 libc/test/src/stdfix/hrbits_test.cpp          |  3 +-
 libc/test/src/stdfix/idivk_test.cpp           |  4 +-
 libc/test/src/stdfix/idivlk_test.cpp          |  4 +-
 libc/test/src/stdfix/idivlr_test.cpp          |  4 +-
 libc/test/src/stdfix/idivr_test.cpp           |  4 +-
 libc/test/src/stdfix/idivuk_test.cpp          |  4 +-
 libc/test/src/stdfix/idivulk_test.cpp         |  4 +-
 libc/test/src/stdfix/idivulr_test.cpp         |  4 +-
 libc/test/src/stdfix/idivur_test.cpp          |  4 +-
 libc/test/src/stdfix/kbits_test.cpp           |  3 +-
 libc/test/src/stdfix/kdivi_test.cpp           |  4 +-
 libc/test/src/stdfix/lkbits_test.cpp          |  3 +-
 libc/test/src/stdfix/lkdivi_test.cpp          |  4 +-
 libc/test/src/stdfix/lrbits_test.cpp          |  3 +-
 libc/test/src/stdfix/lrdivi_test.cpp          |  4 +-
 libc/test/src/stdfix/macros_test.cpp          |  4 +-
 libc/test/src/stdfix/mulik_test.cpp           |  4 +-
 libc/test/src/stdfix/mulilk_test.cpp          |  4 +-
 libc/test/src/stdfix/mulilr_test.cpp          |  4 +-
 libc/test/src/stdfix/mulir_test.cpp           |  4 +-
 libc/test/src/stdfix/muliuk_test.cpp          |  4 +-
 libc/test/src/stdfix/muliulk_test.cpp         |  4 +-
 libc/test/src/stdfix/muliulr_test.cpp         |  4 +-
 libc/test/src/stdfix/muliur_test.cpp          |  4 +-
 libc/test/src/stdfix/rbits_test.cpp           |  3 +-
 libc/test/src/stdfix/rdivi_test.cpp           |  4 +-
 libc/test/src/stdfix/roundhk_test.cpp         |  2 +-
 libc/test/src/stdfix/roundhr_test.cpp         |  2 +-
 libc/test/src/stdfix/roundk_test.cpp          |  2 +-
 libc/test/src/stdfix/roundlk_test.cpp         |  2 +-
 libc/test/src/stdfix/roundlr_test.cpp         |  2 +-
 libc/test/src/stdfix/roundr_test.cpp          |  2 +-
 libc/test/src/stdfix/rounduhk_test.cpp        |  2 +-
 libc/test/src/stdfix/rounduhr_test.cpp        |  2 +-
 libc/test/src/stdfix/rounduk_test.cpp         |  2 +-
 libc/test/src/stdfix/roundulk_test.cpp        |  2 +-
 libc/test/src/stdfix/roundulr_test.cpp        |  2 +-
 libc/test/src/stdfix/roundur_test.cpp         |  2 +-
 libc/test/src/stdfix/sqrtuhk_test.cpp         |  2 +-
 libc/test/src/stdfix/sqrtuhr_test.cpp         |  2 +-
 libc/test/src/stdfix/sqrtuk_test.cpp          |  2 +-
 libc/test/src/stdfix/sqrtulr_test.cpp         |  2 +-
 libc/test/src/stdfix/sqrtur_test.cpp          |  2 +-
 libc/test/src/stdfix/uhkbits_test.cpp         |  3 +-
 libc/test/src/stdfix/uhksqrtus_test.cpp       |  2 +-
 libc/test/src/stdfix/uhrbits_test.cpp         |  3 +-
 libc/test/src/stdfix/ukbits_test.cpp          |  3 +-
 libc/test/src/stdfix/ukdivi_test.cpp          |  4 +-
 libc/test/src/stdfix/uksqrtui_test.cpp        |  2 +-
 libc/test/src/stdfix/ulkbits_test.cpp         |  3 +-
 libc/test/src/stdfix/ulkdivi_test.cpp         |  4 +-
 libc/test/src/stdfix/ulrbits_test.cpp         |  3 +-
 libc/test/src/stdfix/ulrdivi_test.cpp         |  4 +-
 libc/test/src/stdfix/urbits_test.cpp          |  3 +-
 libc/test/src/stdfix/urdivi_test.cpp          |  4 +-
 206 files changed, 336 insertions(+), 310 deletions(-)

diff --git a/libc/src/__support/fixed_point/CMakeLists.txt b/libc/src/__support/fixed_point/CMakeLists.txt
index c1b0ab30e0307b..195f2add7c670c 100644
--- a/libc/src/__support/fixed_point/CMakeLists.txt
+++ b/libc/src/__support/fixed_point/CMakeLists.txt
@@ -5,8 +5,9 @@ add_header_library(
   DEPENDS
     libc.hdr.stdint_proxy
     libc.include.llvm-libc-macros.stdfix_macros
-    libc.src.__support.macros.attributes
     libc.src.__support.CPP.type_traits
+    libc.src.__support.macros.attributes
+    libc.src.__support.macros.config
 )
 
 add_header_library(
@@ -15,13 +16,15 @@ add_header_library(
     fx_bits.h
   DEPENDS
     .fx_rep
+    libc.hdr.stdint_proxy
     libc.include.llvm-libc-macros.stdfix_macros
+    libc.src.__support.CPP.bit
+    libc.src.__support.CPP.limits
+    libc.src.__support.CPP.type_traits
     libc.src.__support.macros.attributes
+    libc.src.__support.macros.config
     libc.src.__support.macros.null_check
     libc.src.__support.macros.optimization
-    libc.src.__support.CPP.type_traits
-    libc.src.__support.CPP.bit
-    libc.src.__support.CPP.limits
     libc.src.__support.math_extras
     libc.src.__support.uint128
 )
@@ -33,9 +36,10 @@ add_header_library(
   DEPENDS
     .fx_rep
     libc.include.llvm-libc-macros.stdfix_macros
-    libc.src.__support.macros.attributes
-    libc.src.__support.macros.optimization
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.limits
     libc.src.__support.CPP.type_traits
+    libc.src.__support.macros.attributes
+    libc.src.__support.macros.config
+    libc.src.__support.macros.optimization
 )
diff --git a/libc/src/__support/fixed_point/fx_bits.h b/libc/src/__support/fixed_point/fx_bits.h
index eb7af96aa7c993..ac1bb3c9aa260d 100644
--- a/libc/src/__support/fixed_point/fx_bits.h
+++ b/libc/src/__support/fixed_point/fx_bits.h
@@ -9,12 +9,12 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FIXED_POINT_FX_BITS_H
 #define LLVM_LIBC_SRC___SUPPORT_FIXED_POINT_FX_BITS_H
 
+#include "hdr/stdint_proxy.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
-#include "src/__support/CPP/algorithm.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/limits.h" // numeric_limits
 #include "src/__support/CPP/type_traits.h"
-#include "src/__support/libc_assert.h"
+#include "src/__support/fixed_point/fx_rep.h"
 #include "src/__support/macros/attributes.h"   // LIBC_INLINE
 #include "src/__support/macros/config.h"       // LIBC_NAMESPACE_DECL
 #include "src/__support/macros/null_check.h"   // LIBC_CRASH_ON_VALUE
@@ -22,8 +22,6 @@
 #include "src/__support/math_extras.h"
 #include "src/__support/uint128.h"
 
-#include "fx_rep.h"
-
 #ifdef LIBC_COMPILER_HAS_FIXED_POINT
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/__support/fixed_point/sqrt.h b/libc/src/__support/fixed_point/sqrt.h
index b77319debeeaff..f2476108241778 100644
--- a/libc/src/__support/fixed_point/sqrt.h
+++ b/libc/src/__support/fixed_point/sqrt.h
@@ -13,12 +13,11 @@
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/limits.h" // CHAR_BIT
 #include "src/__support/CPP/type_traits.h"
-#include "src/__support/macros/attributes.h"   // LIBC_INLINE
+#include "src/__support/fixed_point/fx_rep.h"
+#include "src/__support/macros/attributes.h" // LIBC_INLINE
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
 
-#include "fx_rep.h"
-
 #ifdef LIBC_COMPILER_HAS_FIXED_POINT
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/CMakeLists.txt b/libc/src/stdfix/CMakeLists.txt
index 4da1f70f5dc2f2..0745599015f7f6 100644
--- a/libc/src/stdfix/CMakeLists.txt
+++ b/libc/src/stdfix/CMakeLists.txt
@@ -27,6 +27,12 @@ foreach(suffix IN ITEMS uhr ur ulr uhk uk)
 endforeach()
 
 foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
+  if(suffix MATCHES "^u")
+    set(int_type uint_${suffix}_t)
+  else()
+    set(int_type int_${suffix}_t)
+  endif()
+
   add_entrypoint_object(
     round${suffix}
     HDRS
@@ -44,8 +50,9 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
     SRCS
       ${suffix}bits.cpp
     DEPENDS
+      libc.include.llvm-libc-macros.stdfix_macros
+      libc.include.llvm-libc-types.${int_type}
       libc.src.__support.CPP.bit
-      libc.src.__support.fixed_point.fx_bits
   )
 
   add_entrypoint_object(
@@ -55,8 +62,9 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
     SRCS
       bits${suffix}.cpp
     DEPENDS
-      libc.src.__support.fixed_point.fx_bits
       libc.include.llvm-libc-macros.stdfix_macros
+      libc.include.llvm-libc-types.${int_type}
+      libc.src.__support.fixed_point.fx_bits
   )
 
   add_entrypoint_object(
@@ -146,7 +154,8 @@ foreach(suffix IN ITEMS hk k uhk uk)
     SRCS
       exp${suffix}.cpp
     DEPENDS
-      libc.src.__support.fixed_point.fx_rep
       libc.src.__support.CPP.bit
+      libc.src.__support.fixed_point.fx_rep
+      libc.src.__support.macros.optimization
   )
 endforeach()
diff --git a/libc/src/stdfix/abshk.cpp b/libc/src/stdfix/abshk.cpp
index 384988997c8c74..7e5960e8f8b208 100644
--- a/libc/src/stdfix/abshk.cpp
+++ b/libc/src/stdfix/abshk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "abshk.h"
+#include "src/stdfix/abshk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/abshr.cpp b/libc/src/stdfix/abshr.cpp
index d4289800fef0bd..29d21839bdfe4c 100644
--- a/libc/src/stdfix/abshr.cpp
+++ b/libc/src/stdfix/abshr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "abshr.h"
+#include "src/stdfix/abshr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/absk.cpp b/libc/src/stdfix/absk.cpp
index 8c18175fa97d3a..0847711243ff52 100644
--- a/libc/src/stdfix/absk.cpp
+++ b/libc/src/stdfix/absk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "absk.h"
+#include "src/stdfix/absk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/abslk.cpp b/libc/src/stdfix/abslk.cpp
index c24d21671a1100..4fbe1246d8fcd3 100644
--- a/libc/src/stdfix/abslk.cpp
+++ b/libc/src/stdfix/abslk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "abslk.h"
+#include "src/stdfix/abslk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/abslr.cpp b/libc/src/stdfix/abslr.cpp
index 3f84fc725e51c8..4a03f1da14bf55 100644
--- a/libc/src/stdfix/abslr.cpp
+++ b/libc/src/stdfix/abslr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "abslr.h"
+#include "src/stdfix/abslr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/absr.cpp b/libc/src/stdfix/absr.cpp
index 42f639d63f5a74..8ea21506e57e7c 100644
--- a/libc/src/stdfix/absr.cpp
+++ b/libc/src/stdfix/absr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "absr.h"
+#include "src/stdfix/absr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/bitshk.cpp b/libc/src/stdfix/bitshk.cpp
index be4e71a06557d3..e5ad08212cf0d8 100644
--- a/libc/src/stdfix/bitshk.cpp
+++ b/libc/src/stdfix/bitshk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitshk.h"
+#include "src/stdfix/bitshk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // short accum
 #include "include/llvm-libc-types/int_hk_t.h"
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitshr.cpp b/libc/src/stdfix/bitshr.cpp
index e70bf0a9e55a7a..474f1bbc6d6c71 100644
--- a/libc/src/stdfix/bitshr.cpp
+++ b/libc/src/stdfix/bitshr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitshr.h"
+#include "src/stdfix/bitshr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // short fract
 #include "include/llvm-libc-types/int_hr_t.h"
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsk.cpp b/libc/src/stdfix/bitsk.cpp
index 0f1a3f3d0175b0..0c888c466d8507 100644
--- a/libc/src/stdfix/bitsk.cpp
+++ b/libc/src/stdfix/bitsk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsk.h"
+#include "src/stdfix/bitsk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // accum
 #include "include/llvm-libc-types/int_k_t.h"
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitslk.cpp b/libc/src/stdfix/bitslk.cpp
index 1065c3223ac456..4952e41df40bd7 100644
--- a/libc/src/stdfix/bitslk.cpp
+++ b/libc/src/stdfix/bitslk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitslk.h"
+#include "src/stdfix/bitslk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // long accum
 #include "include/llvm-libc-types/int_lk_t.h"       // int_lk_t
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitslr.cpp b/libc/src/stdfix/bitslr.cpp
index e8a499389db034..dabb2fcf8c5555 100644
--- a/libc/src/stdfix/bitslr.cpp
+++ b/libc/src/stdfix/bitslr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitslr.h"
+#include "src/stdfix/bitslr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // long fract
 #include "include/llvm-libc-types/int_lr_t.h"       // int_lr_t
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsr.cpp b/libc/src/stdfix/bitsr.cpp
index 4eefe28a71f919..f2d1c745be4b18 100644
--- a/libc/src/stdfix/bitsr.cpp
+++ b/libc/src/stdfix/bitsr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsr.h"
+#include "src/stdfix/bitsr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // fract
 #include "include/llvm-libc-types/int_r_t.h"        // int_r_t
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsuhk.cpp b/libc/src/stdfix/bitsuhk.cpp
index 62f7cf3d454d5b..240ab832000495 100755
--- a/libc/src/stdfix/bitsuhk.cpp
+++ b/libc/src/stdfix/bitsuhk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsuhk.h"
+#include "src/stdfix/bitsuhk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned short accum
 #include "include/llvm-libc-types/uint_uhk_t.h"     // uint_uhk_t
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsuhr.cpp b/libc/src/stdfix/bitsuhr.cpp
index 236b2a08795332..6c778b0b15f441 100755
--- a/libc/src/stdfix/bitsuhr.cpp
+++ b/libc/src/stdfix/bitsuhr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsuhr.h"
+#include "src/stdfix/bitsuhr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned short fract
 #include "include/llvm-libc-types/uint_uhr_t.h"
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsuk.cpp b/libc/src/stdfix/bitsuk.cpp
index 32a4fbea03ab4f..f022d80d799980 100755
--- a/libc/src/stdfix/bitsuk.cpp
+++ b/libc/src/stdfix/bitsuk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsuk.h"
+#include "src/stdfix/bitsuk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned accum
 #include "include/llvm-libc-types/uint_uk_t.h"      // uint_uk_t
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsulk.cpp b/libc/src/stdfix/bitsulk.cpp
index d1000da7a2ec29..e87fc53ac86667 100755
--- a/libc/src/stdfix/bitsulk.cpp
+++ b/libc/src/stdfix/bitsulk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsulk.h"
+#include "src/stdfix/bitsulk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned long accum
 #include "include/llvm-libc-types/uint_ulk_t.h"     // uint_ulk_t
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsulr.cpp b/libc/src/stdfix/bitsulr.cpp
index 4099b715846e12..b853738b122d8f 100755
--- a/libc/src/stdfix/bitsulr.cpp
+++ b/libc/src/stdfix/bitsulr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsulr.h"
+#include "src/stdfix/bitsulr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned long fract
 #include "include/llvm-libc-types/uint_ulr_t.h"
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/bitsur.cpp b/libc/src/stdfix/bitsur.cpp
index 8d422d4df66231..e6d8776e3fc269 100755
--- a/libc/src/stdfix/bitsur.cpp
+++ b/libc/src/stdfix/bitsur.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "bitsur.h"
+#include "src/stdfix/bitsur.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned fract
 #include "include/llvm-libc-types/uint_ur_t.h"
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
diff --git a/libc/src/stdfix/countlshk.cpp b/libc/src/stdfix/countlshk.cpp
index f94728beff1cb0..7a09b4527a6955 100644
--- a/libc/src/stdfix/countlshk.cpp
+++ b/libc/src/stdfix/countlshk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlshk.h"
+#include "src/stdfix/countlshk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlshr.cpp b/libc/src/stdfix/countlshr.cpp
index d77d3e9a3c22ad..da03f0ad01fd5c 100644
--- a/libc/src/stdfix/countlshr.cpp
+++ b/libc/src/stdfix/countlshr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlshr.h"
+#include "src/stdfix/countlshr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsk.cpp b/libc/src/stdfix/countlsk.cpp
index b6f56adee16a6c..421638ddbfb208 100644
--- a/libc/src/stdfix/countlsk.cpp
+++ b/libc/src/stdfix/countlsk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsk.h"
+#include "src/stdfix/countlsk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlslk.cpp b/libc/src/stdfix/countlslk.cpp
index 9bf30ff34c6ee7..11be052ef82b82 100644
--- a/libc/src/stdfix/countlslk.cpp
+++ b/libc/src/stdfix/countlslk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlslk.h"
+#include "src/stdfix/countlslk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlslr.cpp b/libc/src/stdfix/countlslr.cpp
index 774023c734a37e..9cdf1da0525efd 100644
--- a/libc/src/stdfix/countlslr.cpp
+++ b/libc/src/stdfix/countlslr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlslr.h"
+#include "src/stdfix/countlslr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsr.cpp b/libc/src/stdfix/countlsr.cpp
index 14563127ad5e9d..2ada6fb93e5346 100644
--- a/libc/src/stdfix/countlsr.cpp
+++ b/libc/src/stdfix/countlsr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsr.h"
+#include "src/stdfix/countlsr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsuhk.cpp b/libc/src/stdfix/countlsuhk.cpp
index 2cc266f47da1fc..bd81ce0e12f505 100644
--- a/libc/src/stdfix/countlsuhk.cpp
+++ b/libc/src/stdfix/countlsuhk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsuhk.h"
+#include "src/stdfix/countlsuhk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsuhr.cpp b/libc/src/stdfix/countlsuhr.cpp
index f30b0dd731aa94..b8b1f4d58a7fce 100644
--- a/libc/src/stdfix/countlsuhr.cpp
+++ b/libc/src/stdfix/countlsuhr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsuhr.h"
+#include "src/stdfix/countlsuhr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsuk.cpp b/libc/src/stdfix/countlsuk.cpp
index 90617cfeb5cdc4..71c2a6ba608894 100644
--- a/libc/src/stdfix/countlsuk.cpp
+++ b/libc/src/stdfix/countlsuk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsuk.h"
+#include "src/stdfix/countlsuk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsulk.cpp b/libc/src/stdfix/countlsulk.cpp
index 04090dd86c7320..c399d00148b2ef 100644
--- a/libc/src/stdfix/countlsulk.cpp
+++ b/libc/src/stdfix/countlsulk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsulk.h"
+#include "src/stdfix/countlsulk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsulr.cpp b/libc/src/stdfix/countlsulr.cpp
index d9d6ff404c2110..e7c545786e3403 100644
--- a/libc/src/stdfix/countlsulr.cpp
+++ b/libc/src/stdfix/countlsulr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsulr.h"
+#include "src/stdfix/countlsulr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/countlsur.cpp b/libc/src/stdfix/countlsur.cpp
index 777e5f387aadf1..bb40dd801634d9 100644
--- a/libc/src/stdfix/countlsur.cpp
+++ b/libc/src/stdfix/countlsur.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "countlsur.h"
+#include "src/stdfix/countlsur.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h" // LIBC_NAMESPACE_DECL
diff --git a/libc/src/stdfix/divik.cpp b/libc/src/stdfix/divik.cpp
index eb6cb00d7695a7..1356cbee517e16 100644
--- a/libc/src/stdfix/divik.cpp
+++ b/libc/src/stdfix/divik.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "divik.h"
+#include "src/stdfix/divik.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/divilk.cpp b/libc/src/stdfix/divilk.cpp
index cc02f56a100ae6..3a9a49733c04e2 100644
--- a/libc/src/stdfix/divilk.cpp
+++ b/libc/src/stdfix/divilk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "divilk.h"
+#include "src/stdfix/divilk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/divilr.cpp b/libc/src/stdfix/divilr.cpp
index 881ee631826995..7296e901a63c93 100644
--- a/libc/src/stdfix/divilr.cpp
+++ b/libc/src/stdfix/divilr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "divilr.h"
+#include "src/stdfix/divilr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/divir.cpp b/libc/src/stdfix/divir.cpp
index 8f1c6dceb5b44e..532f8a2794eadb 100644
--- a/libc/src/stdfix/divir.cpp
+++ b/libc/src/stdfix/divir.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "divir.h"
+#include "src/stdfix/divir.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/diviuk.cpp b/libc/src/stdfix/diviuk.cpp
index 0dccbf7947b96d..28faa89553b0b2 100644
--- a/libc/src/stdfix/diviuk.cpp
+++ b/libc/src/stdfix/diviuk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "diviuk.h"
+#include "src/stdfix/diviuk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/diviulk.cpp b/libc/src/stdfix/diviulk.cpp
index 2b66ffc0e45806..3b6614332e23f9 100644
--- a/libc/src/stdfix/diviulk.cpp
+++ b/libc/src/stdfix/diviulk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "diviulk.h"
+#include "src/stdfix/diviulk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/diviulr.cpp b/libc/src/stdfix/diviulr.cpp
index cb773d555e99d3..44b47bf9dd9c17 100644
--- a/libc/src/stdfix/diviulr.cpp
+++ b/libc/src/stdfix/diviulr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "diviulr.h"
+#include "src/stdfix/diviulr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/diviur.cpp b/libc/src/stdfix/diviur.cpp
index 252d1e381407d2..b70510e0ed2dfc 100644
--- a/libc/src/stdfix/diviur.cpp
+++ b/libc/src/stdfix/diviur.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "diviur.h"
+#include "src/stdfix/diviur.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/exphk.cpp b/libc/src/stdfix/exphk.cpp
index eb8c9290902784..1af846ba8fab92 100644
--- a/libc/src/stdfix/exphk.cpp
+++ b/libc/src/stdfix/exphk.cpp
@@ -6,11 +6,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "exphk.h"
+#include "src/stdfix/exphk.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/fixed_point/fx_rep.h"
 #include "src/__support/macros/config.h"
+#include "src/__support/macros/optimization.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/expk.cpp b/libc/src/stdfix/expk.cpp
index 9ce19b3c2bbd07..4fccdcaeba6f37 100644
--- a/libc/src/stdfix/expk.cpp
+++ b/libc/src/stdfix/expk.cpp
@@ -6,11 +6,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "expk.h"
+#include "src/stdfix/expk.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/fixed_point/fx_rep.h"
 #include "src/__support/macros/config.h"
+#include "src/__support/macros/optimization.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/hkbits.cpp b/libc/src/stdfix/hkbits.cpp
index a2167e879cebfd..482b51a0c43f26 100644
--- a/libc/src/stdfix/hkbits.cpp
+++ b/libc/src/stdfix/hkbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "hkbits.h"
+#include "src/stdfix/hkbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/hrbits.cpp b/libc/src/stdfix/hrbits.cpp
index cc314fee51b11d..2d8af4f726db3e 100644
--- a/libc/src/stdfix/hrbits.cpp
+++ b/libc/src/stdfix/hrbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "hrbits.h"
+#include "src/stdfix/hrbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/idivk.cpp b/libc/src/stdfix/idivk.cpp
index d1d758dc569956..4c0ddf502480a6 100644
--- a/libc/src/stdfix/idivk.cpp
+++ b/libc/src/stdfix/idivk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivk.h"
+#include "src/stdfix/idivk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // accum
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/idivlk.cpp b/libc/src/stdfix/idivlk.cpp
index 36e1df6cc58fbe..29913bdd705e49 100644
--- a/libc/src/stdfix/idivlk.cpp
+++ b/libc/src/stdfix/idivlk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivlk.h"
+#include "src/stdfix/idivlk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // long accum
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/idivlr.cpp b/libc/src/stdfix/idivlr.cpp
index 1c9d62d196a296..3023fc5f0d85d1 100644
--- a/libc/src/stdfix/idivlr.cpp
+++ b/libc/src/stdfix/idivlr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivlr.h"
+#include "src/stdfix/idivlr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // long fract
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/idivr.cpp b/libc/src/stdfix/idivr.cpp
index 80dd1b2107272c..36d8d392f07ca0 100644
--- a/libc/src/stdfix/idivr.cpp
+++ b/libc/src/stdfix/idivr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivr.h"
+#include "src/stdfix/idivr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // fract
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/idivuk.cpp b/libc/src/stdfix/idivuk.cpp
index 27bf8edd80927e..2671604e59286b 100644
--- a/libc/src/stdfix/idivuk.cpp
+++ b/libc/src/stdfix/idivuk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivuk.h"
+#include "src/stdfix/idivuk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned accum
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/idivulk.cpp b/libc/src/stdfix/idivulk.cpp
index 8b4e63c1b78fb4..fb3992e2c9d14c 100644
--- a/libc/src/stdfix/idivulk.cpp
+++ b/libc/src/stdfix/idivulk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivulk.h"
+#include "src/stdfix/idivulk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned long accum
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/idivulr.cpp b/libc/src/stdfix/idivulr.cpp
index 6e6a780c1b8c5a..364505ab980b67 100644
--- a/libc/src/stdfix/idivulr.cpp
+++ b/libc/src/stdfix/idivulr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivulr.h"
+#include "src/stdfix/idivulr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned long fract
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/idivur.cpp b/libc/src/stdfix/idivur.cpp
index 319817b9662d38..c2224e4a59bd95 100644
--- a/libc/src/stdfix/idivur.cpp
+++ b/libc/src/stdfix/idivur.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "idivur.h"
+#include "src/stdfix/idivur.h"
 #include "include/llvm-libc-macros/stdfix-macros.h" // unsigned fract
 #include "src/__support/common.h"                   // LLVM_LIBC_FUNCTION
 #include "src/__support/fixed_point/fx_bits.h"      // fixed_point
diff --git a/libc/src/stdfix/kbits.cpp b/libc/src/stdfix/kbits.cpp
index 61fd4f656db27d..1402590c9aed8b 100644
--- a/libc/src/stdfix/kbits.cpp
+++ b/libc/src/stdfix/kbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "kbits.h"
+#include "src/stdfix/kbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/kdivi.cpp b/libc/src/stdfix/kdivi.cpp
index 0441c495ffada2..108849ca5cd67d 100644
--- a/libc/src/stdfix/kdivi.cpp
+++ b/libc/src/stdfix/kdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "kdivi.h"
+#include "src/stdfix/kdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/lkbits.cpp b/libc/src/stdfix/lkbits.cpp
index 83f3433c26f614..4aa8419deb37d4 100644
--- a/libc/src/stdfix/lkbits.cpp
+++ b/libc/src/stdfix/lkbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "lkbits.h"
+#include "src/stdfix/lkbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/lkdivi.cpp b/libc/src/stdfix/lkdivi.cpp
index 82755ddfe8d382..601ead385c2c50 100644
--- a/libc/src/stdfix/lkdivi.cpp
+++ b/libc/src/stdfix/lkdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "lkdivi.h"
+#include "src/stdfix/lkdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/lrbits.cpp b/libc/src/stdfix/lrbits.cpp
index a726816813b411..7904d96979ddea 100644
--- a/libc/src/stdfix/lrbits.cpp
+++ b/libc/src/stdfix/lrbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "lrbits.h"
+#include "src/stdfix/lrbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/lrdivi.cpp b/libc/src/stdfix/lrdivi.cpp
index 31ff4698358297..ec69d2c3304d0c 100644
--- a/libc/src/stdfix/lrdivi.cpp
+++ b/libc/src/stdfix/lrdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "lrdivi.h"
+#include "src/stdfix/lrdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/mulik.cpp b/libc/src/stdfix/mulik.cpp
index 74269d39149ca1..fde5243cd0c1f3 100644
--- a/libc/src/stdfix/mulik.cpp
+++ b/libc/src/stdfix/mulik.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "mulik.h"
+#include "src/stdfix/mulik.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/mulilk.cpp b/libc/src/stdfix/mulilk.cpp
index 829fcc782508a5..10695a443639c2 100644
--- a/libc/src/stdfix/mulilk.cpp
+++ b/libc/src/stdfix/mulilk.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "mulilk.h"
+#include "src/stdfix/mulilk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/mulilr.cpp b/libc/src/stdfix/mulilr.cpp
index e2d0d0264a553e..b5d1db9b17d883 100644
--- a/libc/src/stdfix/mulilr.cpp
+++ b/libc/src/stdfix/mulilr.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "mulilr.h"
+#include "src/stdfix/mulilr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/mulir.cpp b/libc/src/stdfix/mulir.cpp
index 4bed8546fa9a56..5623d1370a73a7 100644
--- a/libc/src/stdfix/mulir.cpp
+++ b/libc/src/stdfix/mulir.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "mulir.h"
+#include "src/stdfix/mulir.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/muliuk.cpp b/libc/src/stdfix/muliuk.cpp
index 8c83aef918224f..796578ef883da1 100644
--- a/libc/src/stdfix/muliuk.cpp
+++ b/libc/src/stdfix/muliuk.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "muliuk.h"
+#include "src/stdfix/muliuk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/muliulk.cpp b/libc/src/stdfix/muliulk.cpp
index 55e3ea6720bc23..ba5b8a72250d63 100644
--- a/libc/src/stdfix/muliulk.cpp
+++ b/libc/src/stdfix/muliulk.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "muliulk.h"
+#include "src/stdfix/muliulk.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/muliulr.cpp b/libc/src/stdfix/muliulr.cpp
index edd3381239e06d..13f8b6d31e8aac 100644
--- a/libc/src/stdfix/muliulr.cpp
+++ b/libc/src/stdfix/muliulr.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "muliulr.h"
+#include "src/stdfix/muliulr.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/muliur.cpp b/libc/src/stdfix/muliur.cpp
index 5d3c195a6a4f46..d6a2e52595a941 100644
--- a/libc/src/stdfix/muliur.cpp
+++ b/libc/src/stdfix/muliur.cpp
@@ -11,7 +11,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "muliur.h"
+#include "src/stdfix/muliur.h"
 #include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
diff --git a/libc/src/stdfix/rbits.cpp b/libc/src/stdfix/rbits.cpp
index c31df6e88b832d..0dcda77cba51ce 100644
--- a/libc/src/stdfix/rbits.cpp
+++ b/libc/src/stdfix/rbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "rbits.h"
+#include "src/stdfix/rbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/rdivi.cpp b/libc/src/stdfix/rdivi.cpp
index 863f40c060cd78..36a65f4415a4df 100644
--- a/libc/src/stdfix/rdivi.cpp
+++ b/libc/src/stdfix/rdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "rdivi.h"
+#include "src/stdfix/rdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/roundhk.cpp b/libc/src/stdfix/roundhk.cpp
index c94aa6de5f960a..96a7f57e3bce9c 100644
--- a/libc/src/stdfix/roundhk.cpp
+++ b/libc/src/stdfix/roundhk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundhk.h"
+#include "src/stdfix/roundhk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundhr.cpp b/libc/src/stdfix/roundhr.cpp
index 539f9516622436..cbf102ebb934d8 100644
--- a/libc/src/stdfix/roundhr.cpp
+++ b/libc/src/stdfix/roundhr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundhr.h"
+#include "src/stdfix/roundhr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundk.cpp b/libc/src/stdfix/roundk.cpp
index 3aedfa322b9a73..710f24978756ac 100644
--- a/libc/src/stdfix/roundk.cpp
+++ b/libc/src/stdfix/roundk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundk.h"
+#include "src/stdfix/roundk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundlk.cpp b/libc/src/stdfix/roundlk.cpp
index 94dceb40cf819d..b67d7c1cb11aa5 100644
--- a/libc/src/stdfix/roundlk.cpp
+++ b/libc/src/stdfix/roundlk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundlk.h"
+#include "src/stdfix/roundlk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundlr.cpp b/libc/src/stdfix/roundlr.cpp
index 5a7737d05e6a66..4fa258056d1f8c 100644
--- a/libc/src/stdfix/roundlr.cpp
+++ b/libc/src/stdfix/roundlr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundlr.h"
+#include "src/stdfix/roundlr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundr.cpp b/libc/src/stdfix/roundr.cpp
index d4ade17ac3c6de..9a86087fb76685 100644
--- a/libc/src/stdfix/roundr.cpp
+++ b/libc/src/stdfix/roundr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundr.h"
+#include "src/stdfix/roundr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/rounduhk.cpp b/libc/src/stdfix/rounduhk.cpp
index 3c13a313ed54ff..6d90756bca5c4b 100644
--- a/libc/src/stdfix/rounduhk.cpp
+++ b/libc/src/stdfix/rounduhk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "rounduhk.h"
+#include "src/stdfix/rounduhk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/rounduhr.cpp b/libc/src/stdfix/rounduhr.cpp
index 8c7abaf6bca485..4226946cb2aab2 100644
--- a/libc/src/stdfix/rounduhr.cpp
+++ b/libc/src/stdfix/rounduhr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "rounduhr.h"
+#include "src/stdfix/rounduhr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/rounduk.cpp b/libc/src/stdfix/rounduk.cpp
index d543a6853fc3c9..086848538f0cab 100644
--- a/libc/src/stdfix/rounduk.cpp
+++ b/libc/src/stdfix/rounduk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "rounduk.h"
+#include "src/stdfix/rounduk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundulk.cpp b/libc/src/stdfix/roundulk.cpp
index 09c1d86f4b93fd..0f9b538bcec6d4 100644
--- a/libc/src/stdfix/roundulk.cpp
+++ b/libc/src/stdfix/roundulk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundulk.h"
+#include "src/stdfix/roundulk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundulr.cpp b/libc/src/stdfix/roundulr.cpp
index e654b197dc9fe9..c71896b5549cee 100644
--- a/libc/src/stdfix/roundulr.cpp
+++ b/libc/src/stdfix/roundulr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundulr.h"
+#include "src/stdfix/roundulr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/roundur.cpp b/libc/src/stdfix/roundur.cpp
index 1d3485425984fc..00761e59fc60fe 100644
--- a/libc/src/stdfix/roundur.cpp
+++ b/libc/src/stdfix/roundur.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "roundur.h"
+#include "src/stdfix/roundur.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/sqrtuhk.cpp b/libc/src/stdfix/sqrtuhk.cpp
index 312846af7b7374..01b71fa0936fb3 100644
--- a/libc/src/stdfix/sqrtuhk.cpp
+++ b/libc/src/stdfix/sqrtuhk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "sqrtuhk.h"
+#include "src/stdfix/sqrtuhk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/sqrtuhr.cpp b/libc/src/stdfix/sqrtuhr.cpp
index 87e151cc8ac60f..5197cb0aacc8d5 100644
--- a/libc/src/stdfix/sqrtuhr.cpp
+++ b/libc/src/stdfix/sqrtuhr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "sqrtuhr.h"
+#include "src/stdfix/sqrtuhr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/sqrtuk.cpp b/libc/src/stdfix/sqrtuk.cpp
index 857f75f30cac7d..80637de2339509 100644
--- a/libc/src/stdfix/sqrtuk.cpp
+++ b/libc/src/stdfix/sqrtuk.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "sqrtuk.h"
+#include "src/stdfix/sqrtuk.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/sqrtulr.cpp b/libc/src/stdfix/sqrtulr.cpp
index db9b0639d81363..f5f5ac9a963bbc 100644
--- a/libc/src/stdfix/sqrtulr.cpp
+++ b/libc/src/stdfix/sqrtulr.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "sqrtulr.h"
+#include "src/stdfix/sqrtulr.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/sqrtur.cpp b/libc/src/stdfix/sqrtur.cpp
index 4c696b2c5c38da..51d8c4751f681b 100644
--- a/libc/src/stdfix/sqrtur.cpp
+++ b/libc/src/stdfix/sqrtur.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "sqrtur.h"
+#include "src/stdfix/sqrtur.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/uhkbits.cpp b/libc/src/stdfix/uhkbits.cpp
index 8a91c414312ba5..caeb573fcbd031 100644
--- a/libc/src/stdfix/uhkbits.cpp
+++ b/libc/src/stdfix/uhkbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "uhkbits.h"
+#include "src/stdfix/uhkbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/uhksqrtus.cpp b/libc/src/stdfix/uhksqrtus.cpp
index f41e8794a04186..a3e92e3e70ea2f 100644
--- a/libc/src/stdfix/uhksqrtus.cpp
+++ b/libc/src/stdfix/uhksqrtus.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "uhksqrtus.h"
+#include "src/stdfix/uhksqrtus.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/uhrbits.cpp b/libc/src/stdfix/uhrbits.cpp
index fd6bb1349134d0..60cd414f5850ed 100644
--- a/libc/src/stdfix/uhrbits.cpp
+++ b/libc/src/stdfix/uhrbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "uhrbits.h"
+#include "src/stdfix/uhrbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/ukbits.cpp b/libc/src/stdfix/ukbits.cpp
index f83a354946cac9..f3d0b032769eb5 100644
--- a/libc/src/stdfix/ukbits.cpp
+++ b/libc/src/stdfix/ukbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ukbits.h"
+#include "src/stdfix/ukbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/ukdivi.cpp b/libc/src/stdfix/ukdivi.cpp
index bd41226c45152a..ceea4a16e8a990 100644
--- a/libc/src/stdfix/ukdivi.cpp
+++ b/libc/src/stdfix/ukdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ukdivi.h"
+#include "src/stdfix/ukdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/uksqrtui.cpp b/libc/src/stdfix/uksqrtui.cpp
index 504bd06163cf4a..17fb471f03694b 100644
--- a/libc/src/stdfix/uksqrtui.cpp
+++ b/libc/src/stdfix/uksqrtui.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "uksqrtui.h"
+#include "src/stdfix/uksqrtui.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/__support/macros/config.h"
diff --git a/libc/src/stdfix/ulkbits.cpp b/libc/src/stdfix/ulkbits.cpp
index eaf4057bb2ae76..ed3e94896c2eae 100644
--- a/libc/src/stdfix/ulkbits.cpp
+++ b/libc/src/stdfix/ulkbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ulkbits.h"
+#include "src/stdfix/ulkbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/ulkdivi.cpp b/libc/src/stdfix/ulkdivi.cpp
index f3232dbe3ca3fd..a0ebf8d387c64a 100644
--- a/libc/src/stdfix/ulkdivi.cpp
+++ b/libc/src/stdfix/ulkdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ulkdivi.h"
+#include "src/stdfix/ulkdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/ulrbits.cpp b/libc/src/stdfix/ulrbits.cpp
index 92f34705e9e571..de37a8a1e159fd 100644
--- a/libc/src/stdfix/ulrbits.cpp
+++ b/libc/src/stdfix/ulrbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ulrbits.h"
+#include "src/stdfix/ulrbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/ulrdivi.cpp b/libc/src/stdfix/ulrdivi.cpp
index db73eb1bbabeb8..f9bd2593872782 100644
--- a/libc/src/stdfix/ulrdivi.cpp
+++ b/libc/src/stdfix/ulrdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ulrdivi.h"
+#include "src/stdfix/ulrdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/src/stdfix/urbits.cpp b/libc/src/stdfix/urbits.cpp
index 25801e31259007..1bf59253358406 100644
--- a/libc/src/stdfix/urbits.cpp
+++ b/libc/src/stdfix/urbits.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "urbits.h"
+#include "src/stdfix/urbits.h"
+#include "src/__support/CPP/bit.h"
 #include "src/__support/common.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
diff --git a/libc/src/stdfix/urdivi.cpp b/libc/src/stdfix/urdivi.cpp
index 104eb17fda1d25..76336844e9525b 100644
--- a/libc/src/stdfix/urdivi.cpp
+++ b/libc/src/stdfix/urdivi.cpp
@@ -6,9 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "urdivi.h"
+#include "src/stdfix/urdivi.h"
 #include "src/__support/common.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/macros/config.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/test/src/__support/fixed_point/CMakeLists.txt b/libc/test/src/__support/fixed_point/CMakeLists.txt
index 2b3648a7752656..60bf7e712638ef 100644
--- a/libc/test/src/__support/fixed_point/CMakeLists.txt
+++ b/libc/test/src/__support/fixed_point/CMakeLists.txt
@@ -11,6 +11,9 @@ add_libc_test(
   SRCS
     fx_bits_test.cpp
   DEPENDS
+    libc.include.llvm-libc-macros.stdfix_macros
+    libc.src.__support.CPP.bit
     libc.src.__support.fixed_point.fx_bits
+    libc.src.__support.fixed_point.fx_rep
     libc.src.__support.integer_literals
 )
diff --git a/libc/test/src/__support/fixed_point/fx_bits_test.cpp b/libc/test/src/__support/fixed_point/fx_bits_test.cpp
index 804cfd3fb2bf79..ad2f04b22aa8c7 100644
--- a/libc/test/src/__support/fixed_point/fx_bits_test.cpp
+++ b/libc/test/src/__support/fixed_point/fx_bits_test.cpp
@@ -8,7 +8,9 @@
 
 #include "include/llvm-libc-macros/stdfix-macros.h"
 
+#include "src/__support/CPP/bit.h"
 #include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/fixed_point/fx_rep.h"
 #include "src/__support/integer_literals.h"
 #include "test/UnitTest/Test.h"
 
diff --git a/libc/test/src/stdfix/CMakeLists.txt b/libc/test/src/stdfix/CMakeLists.txt
index 152fdc99ef95a6..8f1f0e9ea0746a 100644
--- a/libc/test/src/stdfix/CMakeLists.txt
+++ b/libc/test/src/stdfix/CMakeLists.txt
@@ -15,7 +15,7 @@ foreach(suffix IN ITEMS hr r lr hk k lk)
       abs${suffix}_test.cpp
     DEPENDS
       libc.src.stdfix.abs${suffix}
-      libc.src.__support.fixed_point.fx_bits
+      libc.src.__support.fixed_point.fx_rep
   )
 endforeach()
 
@@ -32,13 +32,18 @@ foreach(suffix IN ITEMS uhr ur ulr uhk uk)
       libc.src.stdfix.sqrt${suffix}
       libc.src.__support.CPP.bit
       libc.src.__support.fixed_point.fx_rep
-      libc.src.__support.fixed_point.sqrt
       libc.src.__support.FPUtil.basic_operations
       libc.src.__support.FPUtil.sqrt
   )
 endforeach()
 
 foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
+  if(suffix MATCHES "^u")
+    set(int_type uint_${suffix}_t)
+  else()
+    set(int_type int_${suffix}_t)
+  endif()
+
   add_libc_test(
     round${suffix}_test
     SUITE
@@ -49,7 +54,7 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
       round${suffix}_test.cpp
     DEPENDS
       libc.src.stdfix.round${suffix}
-      libc.src.__support.fixed_point.fx_bits
+      libc.src.__support.fixed_point.fx_rep
   )
 
   add_libc_test(
@@ -62,8 +67,8 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
       ${suffix}bits_test.cpp
     DEPENDS
       libc.src.stdfix.${suffix}bits
-      libc.src.__support.CPP.bit
-      libc.src.__support.fixed_point.fx_bits
+      libc.src.__support.fixed_point.fx_rep
+      libc.src.__support.math_extras
   )
 
   add_libc_test(
@@ -75,21 +80,9 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
     SRCS
       bits${suffix}_test.cpp
     DEPENDS
-      libc.include.llvm-libc-types.int_k_t
-      libc.include.llvm-libc-types.int_hr_t
-      libc.include.llvm-libc-types.int_lk_t
-      libc.include.llvm-libc-types.int_lr_t
-      libc.include.llvm-libc-types.int_r_t
-      libc.include.llvm-libc-types.uint_uhk_t
-      libc.include.llvm-libc-types.uint_uhr_t
-      libc.include.llvm-libc-types.uint_uk_t
-      libc.include.llvm-libc-types.uint_ulk_t
-      libc.include.llvm-libc-types.uint_ulr_t
-      libc.include.llvm-libc-types.uint_ur_t
-      libc.include.llvm-libc-types.int_hk_t
+      libc.include.llvm-libc-types.${int_type}
       libc.src.stdfix.bits${suffix}
       libc.src.__support.fixed_point.fx_rep
-      libc.src.__support.fixed_point.fx_bits
   )
 
   add_libc_test(
@@ -103,7 +96,6 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
     DEPENDS
       libc.src.stdfix.countls${suffix}
       libc.src.__support.fixed_point.fx_rep
-      libc.src.__support.fixed_point.fx_bits
   )
 endforeach()
 
@@ -117,9 +109,10 @@ foreach(suffix IN ITEMS r lr k lk ur ulr uk ulk)
     SRCS
       idiv${suffix}_test.cpp
     DEPENDS
-      libc.src.stdfix.idiv${suffix}
-      libc.src.__support.fixed_point.fx_bits
       libc.hdr.signal_macros
+      libc.include.llvm-libc-macros.stdfix_macros
+      libc.src.stdfix.idiv${suffix}
+      libc.src.__support.fixed_point.fx_rep
   )
 endforeach()
 
@@ -133,9 +126,12 @@ foreach(suffix IN ITEMS r lr k lk ur ulr uk ulk)
     SRCS
       ${suffix}divi_test.cpp
     DEPENDS
-      libc.src.stdfix.${suffix}divi
-      libc.src.__support.fixed_point.fx_bits
       libc.hdr.signal_macros
+      libc.include.llvm-libc-macros.stdfix_macros
+      libc.src.stdfix.${suffix}divi
+      libc.src.__support.CPP.limits
+      libc.src.__support.CPP.type_traits
+      libc.src.__support.fixed_point.fx_rep
   )
 endforeach()
 
@@ -149,10 +145,11 @@ foreach(suffix IN ITEMS r lr k lk ur ulr uk ulk)
     SRCS
       divi${suffix}_test.cpp
     DEPENDS
+      libc.hdr.signal_macros
+      libc.include.llvm-libc-macros.stdfix_macros
       libc.src.stdfix.divi${suffix}
+      libc.src.__support.CPP.limits
       libc.src.__support.fixed_point.fx_rep
-      libc.src.__support.fixed_point.fx_bits
-      libc.hdr.signal_macros
   )
 endforeach()
 
@@ -166,7 +163,9 @@ foreach(suffix IN ITEMS r lr k lk ur ulr uk ulk)
     SRCS
       muli${suffix}_test.cpp
     DEPENDS
+      libc.include.llvm-libc-macros.stdfix_macros
       libc.src.stdfix.muli${suffix}
+      libc.src.__support.CPP.limits
       libc.src.__support.fixed_point.fx_rep
   )
 endforeach()
@@ -181,7 +180,6 @@ add_libc_test(
     uhksqrtus_test.cpp
   DEPENDS
     libc.src.stdfix.uhksqrtus
-    libc.src.__support.CPP.bit
     libc.src.__support.fixed_point.fx_rep
     libc.src.__support.fixed_point.sqrt
     libc.src.__support.FPUtil.basic_operations
@@ -198,7 +196,6 @@ add_libc_test(
     uksqrtui_test.cpp
   DEPENDS
     libc.src.stdfix.uksqrtui
-    libc.src.__support.CPP.bit
     libc.src.__support.fixed_point.fx_rep
     libc.src.__support.fixed_point.sqrt
     libc.src.__support.FPUtil.basic_operations
@@ -217,7 +214,6 @@ foreach(suffix IN ITEMS hk k uhk uk)
     DEPENDS
       libc.src.stdfix.exp${suffix}
       libc.src.math.exp
-      libc.src.__support.CPP.bit
       libc.src.__support.fixed_point.fx_rep
       libc.src.__support.FPUtil.basic_operations
   )
@@ -240,6 +236,6 @@ add_libc_test(
   SUITE libc-stdfix-tests
   SRCS macros_test.cpp
   DEPENDS
-    libc.include.stdfix
+    libc.include.llvm-libc-macros.stdfix_macros
     ${macros_depends}
 )
diff --git a/libc/test/src/stdfix/DiviFxTest.h b/libc/test/src/stdfix/DiviFxTest.h
index 2a1674de256770..b12a3dca398764 100644
--- a/libc/test/src/stdfix/DiviFxTest.h
+++ b/libc/test/src/stdfix/DiviFxTest.h
@@ -17,9 +17,8 @@
 #include "test/UnitTest/Test.h"
 
 #include "hdr/signal_macros.h"
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/CPP/limits.h"
-#include "src/__support/fixed_point/fx_bits.h"
 #include "src/__support/fixed_point/fx_rep.h"
 
 namespace cpp = LIBC_NAMESPACE::cpp;
diff --git a/libc/test/src/stdfix/ExpTest.h b/libc/test/src/stdfix/ExpTest.h
index a05eda9b5a1980..36e69cefabaa0a 100644
--- a/libc/test/src/stdfix/ExpTest.h
+++ b/libc/test/src/stdfix/ExpTest.h
@@ -14,14 +14,10 @@
 #ifndef LLVM_LIBC_TEST_SRC_STDFIX_EXPTEST_H
 #define LLVM_LIBC_TEST_SRC_STDFIX_EXPTEST_H
 
-#include "test/UnitTest/FPMatcher.h"
 #include "test/UnitTest/Test.h"
 
-#include "src/__support/CPP/bit.h"
 #include "src/__support/FPUtil/BasicOperations.h"
 #include "src/__support/fixed_point/fx_rep.h"
-#include "src/__support/fixed_point/sqrt.h"
-
 #include "src/math/exp.h"
 
 template <typename T> class ExpTest : public LIBC_NAMESPACE::testing::Test {
diff --git a/libc/test/src/stdfix/FxBitsTest.h b/libc/test/src/stdfix/FxBitsTest.h
index 78a42c1d05ff3c..a7227a1ef5b5c7 100644
--- a/libc/test/src/stdfix/FxBitsTest.h
+++ b/libc/test/src/stdfix/FxBitsTest.h
@@ -16,8 +16,8 @@
 
 #include "test/UnitTest/Test.h"
 
-#include "src/__support/CPP/bit.h"
-#include "src/__support/fixed_point/fx_bits.h"
+#include "src/__support/fixed_point/fx_rep.h"
+#include "src/__support/math_extras.h"
 
 template <typename T, typename XType>
 class FxBitsTest : public LIBC_NAMESPACE::testing::Test {
diff --git a/libc/test/src/stdfix/FxDiviTest.h b/libc/test/src/stdfix/FxDiviTest.h
index 960ec341626e42..b263b2e45173c2 100644
--- a/libc/test/src/stdfix/FxDiviTest.h
+++ b/libc/test/src/stdfix/FxDiviTest.h
@@ -14,11 +14,12 @@
 #ifndef LLVM_LIBC_TEST_SRC_STDFIX_FXDIVITEST_H
 #define LLVM_LIBC_TEST_SRC_STDFIX_FXDIVITEST_H
 
-#include "src/__support/CPP/type_traits/conditional.h"
 #include "test/UnitTest/Test.h"
 
 #include "hdr/signal_macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/CPP/limits.h"
+#include "src/__support/CPP/type_traits/conditional.h"
 #include "src/__support/fixed_point/fx_rep.h"
 
 namespace cpp = LIBC_NAMESPACE::cpp;
diff --git a/libc/test/src/stdfix/ISqrtTest.h b/libc/test/src/stdfix/ISqrtTest.h
index a789f2d766dabc..b714ba0e218962 100644
--- a/libc/test/src/stdfix/ISqrtTest.h
+++ b/libc/test/src/stdfix/ISqrtTest.h
@@ -14,10 +14,8 @@
 #ifndef LLVM_LIBC_TEST_SRC_STDFIX_ISQRTTEST_H
 #define LLVM_LIBC_TEST_SRC_STDFIX_ISQRTTEST_H
 
-#include "test/UnitTest/FPMatcher.h"
 #include "test/UnitTest/Test.h"
 
-#include "src/__support/CPP/bit.h"
 #include "src/__support/FPUtil/BasicOperations.h"
 #include "src/__support/FPUtil/sqrt.h"
 #include "src/__support/fixed_point/fx_rep.h"
diff --git a/libc/test/src/stdfix/IdivFxTest.h b/libc/test/src/stdfix/IdivFxTest.h
index 14abf75d846d40..f7910ed71eb445 100644
--- a/libc/test/src/stdfix/IdivFxTest.h
+++ b/libc/test/src/stdfix/IdivFxTest.h
@@ -16,10 +16,8 @@
 
 #include "test/UnitTest/Test.h"
 
-#include "src/__support/fixed_point/fx_rep.h"
-#include "src/__support/macros/sanitizer.h"
-
 #include "hdr/signal_macros.h"
+#include "src/__support/fixed_point/fx_rep.h"
 
 template <typename T, typename XType>
 class IdivFxTest : public LIBC_NAMESPACE::testing::Test {
diff --git a/libc/test/src/stdfix/MuliFxTest.h b/libc/test/src/stdfix/MuliFxTest.h
index 8e6cd20871b30e..f368d4d93f5f7b 100644
--- a/libc/test/src/stdfix/MuliFxTest.h
+++ b/libc/test/src/stdfix/MuliFxTest.h
@@ -16,7 +16,7 @@
 
 #include "test/UnitTest/Test.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/__support/CPP/limits.h"
 #include "src/__support/fixed_point/fx_rep.h"
 
diff --git a/libc/test/src/stdfix/SqrtTest.h b/libc/test/src/stdfix/SqrtTest.h
index 403da988c4bee8..7b362d34354623 100644
--- a/libc/test/src/stdfix/SqrtTest.h
+++ b/libc/test/src/stdfix/SqrtTest.h
@@ -20,7 +20,6 @@
 #include "src/__support/FPUtil/BasicOperations.h"
 #include "src/__support/FPUtil/sqrt.h"
 #include "src/__support/fixed_point/fx_rep.h"
-#include "src/__support/fixed_point/sqrt.h"
 
 template <typename T> class SqrtTest : public LIBC_NAMESPACE::testing::Test {
 
diff --git a/libc/test/src/stdfix/abshk_test.cpp b/libc/test/src/stdfix/abshk_test.cpp
index c3f58625ac58ce..41c0897131cd6f 100644
--- a/libc/test/src/stdfix/abshk_test.cpp
+++ b/libc/test/src/stdfix/abshk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AbsTest.h"
+#include "test/src/stdfix/AbsTest.h"
 
 #include "src/stdfix/abshk.h"
 
diff --git a/libc/test/src/stdfix/abshr_test.cpp b/libc/test/src/stdfix/abshr_test.cpp
index d7a962ea1f98d3..99c6c9aa800dcd 100644
--- a/libc/test/src/stdfix/abshr_test.cpp
+++ b/libc/test/src/stdfix/abshr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AbsTest.h"
+#include "test/src/stdfix/AbsTest.h"
 
 #include "src/stdfix/abshr.h"
 
diff --git a/libc/test/src/stdfix/absk_test.cpp b/libc/test/src/stdfix/absk_test.cpp
index 729cf143a4130a..fe12193917f3ab 100644
--- a/libc/test/src/stdfix/absk_test.cpp
+++ b/libc/test/src/stdfix/absk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AbsTest.h"
+#include "test/src/stdfix/AbsTest.h"
 
 #include "src/stdfix/absk.h"
 
diff --git a/libc/test/src/stdfix/abslk_test.cpp b/libc/test/src/stdfix/abslk_test.cpp
index 93ef3469a225af..7f4bfd394182e7 100644
--- a/libc/test/src/stdfix/abslk_test.cpp
+++ b/libc/test/src/stdfix/abslk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AbsTest.h"
+#include "test/src/stdfix/AbsTest.h"
 
 #include "src/stdfix/abslk.h"
 
diff --git a/libc/test/src/stdfix/abslr_test.cpp b/libc/test/src/stdfix/abslr_test.cpp
index c50a5587380288..7dfdb1b9f6875e 100644
--- a/libc/test/src/stdfix/abslr_test.cpp
+++ b/libc/test/src/stdfix/abslr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AbsTest.h"
+#include "test/src/stdfix/AbsTest.h"
 
 #include "src/stdfix/abslr.h"
 
diff --git a/libc/test/src/stdfix/absr_test.cpp b/libc/test/src/stdfix/absr_test.cpp
index 7b811735397935..7830e4f78d8ab8 100644
--- a/libc/test/src/stdfix/absr_test.cpp
+++ b/libc/test/src/stdfix/absr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AbsTest.h"
+#include "test/src/stdfix/AbsTest.h"
 
 #include "src/stdfix/absr.h"
 
diff --git a/libc/test/src/stdfix/bitshk_test.cpp b/libc/test/src/stdfix/bitshk_test.cpp
index 85dbf0a8067abb..be472af2ec7ce1 100644
--- a/libc/test/src/stdfix/bitshk_test.cpp
+++ b/libc/test/src/stdfix/bitshk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/int_hk_t.h" // int_hk_t
+#include "include/llvm-libc-types/int_hk_t.h" // int_hk_t
 #include "src/stdfix/bitshk.h"
 
 LIST_BITSFX_TESTS(hk, short accum, int_hk_t, LIBC_NAMESPACE::bitshk);
diff --git a/libc/test/src/stdfix/bitshr_test.cpp b/libc/test/src/stdfix/bitshr_test.cpp
index d9583ad2bf4dfc..e2e5809aeb719e 100644
--- a/libc/test/src/stdfix/bitshr_test.cpp
+++ b/libc/test/src/stdfix/bitshr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/int_hr_t.h" // int_hr_t
+#include "include/llvm-libc-types/int_hr_t.h" // int_hr_t
 #include "src/stdfix/bitshr.h"
 
 LIST_BITSFX_TESTS(hr, short fract, int_hr_t, LIBC_NAMESPACE::bitshr);
diff --git a/libc/test/src/stdfix/bitsk_test.cpp b/libc/test/src/stdfix/bitsk_test.cpp
index 8d38ab5eb5fdac..834515f7fd2ab1 100644
--- a/libc/test/src/stdfix/bitsk_test.cpp
+++ b/libc/test/src/stdfix/bitsk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/int_k_t.h" // int_k_t
+#include "include/llvm-libc-types/int_k_t.h" // int_k_t
 #include "src/stdfix/bitsk.h"
 
 LIST_BITSFX_TESTS(k, accum, int_k_t, LIBC_NAMESPACE::bitsk);
diff --git a/libc/test/src/stdfix/bitslk_test.cpp b/libc/test/src/stdfix/bitslk_test.cpp
index fc6fcbb0d94e1d..0fa662c5c5c381 100644
--- a/libc/test/src/stdfix/bitslk_test.cpp
+++ b/libc/test/src/stdfix/bitslk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/int_lk_t.h" // int_lk_t
+#include "include/llvm-libc-types/int_lk_t.h" // int_lk_t
 #include "src/stdfix/bitslk.h"
 
 LIST_BITSFX_TESTS(lk, long accum, int_lk_t, LIBC_NAMESPACE::bitslk);
diff --git a/libc/test/src/stdfix/bitslr_test.cpp b/libc/test/src/stdfix/bitslr_test.cpp
index f88580c4b5a25a..177a36a3544a97 100644
--- a/libc/test/src/stdfix/bitslr_test.cpp
+++ b/libc/test/src/stdfix/bitslr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/int_lr_t.h" // int_lr_t
+#include "include/llvm-libc-types/int_lr_t.h" // int_lr_t
 #include "src/stdfix/bitslr.h"
 
 LIST_BITSFX_TESTS(hk, long fract, int_lr_t, LIBC_NAMESPACE::bitslr);
diff --git a/libc/test/src/stdfix/bitsr_test.cpp b/libc/test/src/stdfix/bitsr_test.cpp
index e987a7f80f5688..c755e5351eb48d 100644
--- a/libc/test/src/stdfix/bitsr_test.cpp
+++ b/libc/test/src/stdfix/bitsr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/int_r_t.h" // int_r_t
+#include "include/llvm-libc-types/int_r_t.h" // int_r_t
 #include "src/stdfix/bitsr.h"
 
 LIST_BITSFX_TESTS(r, fract, int_r_t, LIBC_NAMESPACE::bitsr);
diff --git a/libc/test/src/stdfix/bitsuhk_test.cpp b/libc/test/src/stdfix/bitsuhk_test.cpp
index 5b09453641205f..fec7f04d742db8 100644
--- a/libc/test/src/stdfix/bitsuhk_test.cpp
+++ b/libc/test/src/stdfix/bitsuhk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/uint_uhk_t.h" // uint_uhk_t
+#include "include/llvm-libc-types/uint_uhk_t.h" // uint_uhk_t
 #include "src/stdfix/bitsuhk.h"
 
 LIST_BITSFX_TESTS(uhk, unsigned short accum, uint_uhk_t,
diff --git a/libc/test/src/stdfix/bitsuhr_test.cpp b/libc/test/src/stdfix/bitsuhr_test.cpp
index 0d006a35ece6d0..36295dbfdbd282 100644
--- a/libc/test/src/stdfix/bitsuhr_test.cpp
+++ b/libc/test/src/stdfix/bitsuhr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/uint_uhr_t.h" // uint_uhr_t
+#include "include/llvm-libc-types/uint_uhr_t.h" // uint_uhr_t
 #include "src/stdfix/bitsuhr.h"
 
 LIST_BITSFX_TESTS(uhr, unsigned short fract, uint_uhr_t,
diff --git a/libc/test/src/stdfix/bitsuk_test.cpp b/libc/test/src/stdfix/bitsuk_test.cpp
index 06a8a4e515890c..60875ed43ea9ce 100644
--- a/libc/test/src/stdfix/bitsuk_test.cpp
+++ b/libc/test/src/stdfix/bitsuk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/uint_uk_t.h" // uint_uk_t
+#include "include/llvm-libc-types/uint_uk_t.h" // uint_uk_t
 #include "src/stdfix/bitsuk.h"
 
 LIST_BITSFX_TESTS(uk, unsigned accum, uint_uk_t, LIBC_NAMESPACE::bitsuk);
diff --git a/libc/test/src/stdfix/bitsulk_test.cpp b/libc/test/src/stdfix/bitsulk_test.cpp
index 9d56a183cef468..97dc266e997218 100644
--- a/libc/test/src/stdfix/bitsulk_test.cpp
+++ b/libc/test/src/stdfix/bitsulk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/uint_ulk_t.h" // uint_ulk_t
+#include "include/llvm-libc-types/uint_ulk_t.h" // uint_ulk_t
 #include "src/stdfix/bitsulk.h"
 
 LIST_BITSFX_TESTS(ulk, unsigned long accum, uint_ulk_t,
diff --git a/libc/test/src/stdfix/bitsulr_test.cpp b/libc/test/src/stdfix/bitsulr_test.cpp
index 3ebbf8acd14d3e..cee1edfa605f8e 100644
--- a/libc/test/src/stdfix/bitsulr_test.cpp
+++ b/libc/test/src/stdfix/bitsulr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/uint_ulr_t.h" // uint_ulr_t
+#include "include/llvm-libc-types/uint_ulr_t.h" // uint_ulr_t
 #include "src/stdfix/bitsulr.h"
 
 LIST_BITSFX_TESTS(ulr, unsigned long fract, uint_ulr_t,
diff --git a/libc/test/src/stdfix/bitsur_test.cpp b/libc/test/src/stdfix/bitsur_test.cpp
index 4f368075d8279e..7db52cdeac2368 100644
--- a/libc/test/src/stdfix/bitsur_test.cpp
+++ b/libc/test/src/stdfix/bitsur_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "BitsFxTest.h"
+#include "test/src/stdfix/BitsFxTest.h"
 
-#include "llvm-libc-types/uint_ur_t.h" // uint_ur_t
+#include "include/llvm-libc-types/uint_ur_t.h" // uint_ur_t
 #include "src/stdfix/bitsur.h"
 
 LIST_BITSFX_TESTS(ur, unsigned fract, uint_ur_t, LIBC_NAMESPACE::bitsur);
diff --git a/libc/test/src/stdfix/countlshk_test.cpp b/libc/test/src/stdfix/countlshk_test.cpp
index 659f869706b5f7..192c9bd8cd96d2 100644
--- a/libc/test/src/stdfix/countlshk_test.cpp
+++ b/libc/test/src/stdfix/countlshk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlshk.h"
 
diff --git a/libc/test/src/stdfix/countlshr_test.cpp b/libc/test/src/stdfix/countlshr_test.cpp
index 361d4acab3b114..d187643441c9d1 100644
--- a/libc/test/src/stdfix/countlshr_test.cpp
+++ b/libc/test/src/stdfix/countlshr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlshr.h"
 
diff --git a/libc/test/src/stdfix/countlsk_test.cpp b/libc/test/src/stdfix/countlsk_test.cpp
index 74cb519ec78de1..f9a8189a3fecf3 100644
--- a/libc/test/src/stdfix/countlsk_test.cpp
+++ b/libc/test/src/stdfix/countlsk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsk.h"
 
diff --git a/libc/test/src/stdfix/countlslk_test.cpp b/libc/test/src/stdfix/countlslk_test.cpp
index 006939db3c87e4..1328037db08e9d 100644
--- a/libc/test/src/stdfix/countlslk_test.cpp
+++ b/libc/test/src/stdfix/countlslk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlslk.h"
 
diff --git a/libc/test/src/stdfix/countlslr_test.cpp b/libc/test/src/stdfix/countlslr_test.cpp
index 896cf9259c3ea3..548d5ca14aabde 100644
--- a/libc/test/src/stdfix/countlslr_test.cpp
+++ b/libc/test/src/stdfix/countlslr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlslr.h"
 
diff --git a/libc/test/src/stdfix/countlsr_test.cpp b/libc/test/src/stdfix/countlsr_test.cpp
index d7ae91ccd6a920..0451ee87f49a46 100644
--- a/libc/test/src/stdfix/countlsr_test.cpp
+++ b/libc/test/src/stdfix/countlsr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsr.h"
 
diff --git a/libc/test/src/stdfix/countlsuhk_test.cpp b/libc/test/src/stdfix/countlsuhk_test.cpp
index d8e68d65160e7e..872bc919f68715 100644
--- a/libc/test/src/stdfix/countlsuhk_test.cpp
+++ b/libc/test/src/stdfix/countlsuhk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsuhk.h"
 
diff --git a/libc/test/src/stdfix/countlsuhr_test.cpp b/libc/test/src/stdfix/countlsuhr_test.cpp
index 7dbc590d4a552f..c1c50a4e4deb87 100644
--- a/libc/test/src/stdfix/countlsuhr_test.cpp
+++ b/libc/test/src/stdfix/countlsuhr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsuhr.h"
 
diff --git a/libc/test/src/stdfix/countlsuk_test.cpp b/libc/test/src/stdfix/countlsuk_test.cpp
index 20f78d8c942b64..ca07931c242593 100644
--- a/libc/test/src/stdfix/countlsuk_test.cpp
+++ b/libc/test/src/stdfix/countlsuk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsuk.h"
 
diff --git a/libc/test/src/stdfix/countlsulk_test.cpp b/libc/test/src/stdfix/countlsulk_test.cpp
index 81ae208055cd94..6e0e43bd45cada 100644
--- a/libc/test/src/stdfix/countlsulk_test.cpp
+++ b/libc/test/src/stdfix/countlsulk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsulk.h"
 
diff --git a/libc/test/src/stdfix/countlsulr_test.cpp b/libc/test/src/stdfix/countlsulr_test.cpp
index 5b9b047f7fd747..6172e87c44e134 100644
--- a/libc/test/src/stdfix/countlsulr_test.cpp
+++ b/libc/test/src/stdfix/countlsulr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsulr.h"
 
diff --git a/libc/test/src/stdfix/countlsur_test.cpp b/libc/test/src/stdfix/countlsur_test.cpp
index 67e32d7b562173..4542e5ac757e3f 100644
--- a/libc/test/src/stdfix/countlsur_test.cpp
+++ b/libc/test/src/stdfix/countlsur_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "CountlsTest.h"
+#include "test/src/stdfix/CountlsTest.h"
 
 #include "src/stdfix/countlsur.h"
 
diff --git a/libc/test/src/stdfix/divik_test.cpp b/libc/test/src/stdfix/divik_test.cpp
index 1287d5d1a8d48e..362f3ab1828bf5 100644
--- a/libc/test/src/stdfix/divik_test.cpp
+++ b/libc/test/src/stdfix/divik_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/divik.h"
 
 LIST_DIVIFX_TESTS(k, int, accum, LIBC_NAMESPACE::divik);
diff --git a/libc/test/src/stdfix/divilk_test.cpp b/libc/test/src/stdfix/divilk_test.cpp
index ebc6941139ca77..f48ca59918e4bf 100644
--- a/libc/test/src/stdfix/divilk_test.cpp
+++ b/libc/test/src/stdfix/divilk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/divilk.h"
 
 LIST_DIVIFX_TESTS(lk, long int, long accum, LIBC_NAMESPACE::divilk);
diff --git a/libc/test/src/stdfix/divilr_test.cpp b/libc/test/src/stdfix/divilr_test.cpp
index 99567836f27b61..a1d9e9ff45b111 100644
--- a/libc/test/src/stdfix/divilr_test.cpp
+++ b/libc/test/src/stdfix/divilr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/divilr.h"
 
 LIST_DIVIFX_TESTS(lr, long int, long fract, LIBC_NAMESPACE::divilr);
diff --git a/libc/test/src/stdfix/divir_test.cpp b/libc/test/src/stdfix/divir_test.cpp
index e8b055561014b6..87eb4e5f424528 100644
--- a/libc/test/src/stdfix/divir_test.cpp
+++ b/libc/test/src/stdfix/divir_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/divir.h"
 
 LIST_DIVIFX_TESTS(r, int, fract, LIBC_NAMESPACE::divir);
diff --git a/libc/test/src/stdfix/diviuk_test.cpp b/libc/test/src/stdfix/diviuk_test.cpp
index a7d632a6615029..192412748cd074 100644
--- a/libc/test/src/stdfix/diviuk_test.cpp
+++ b/libc/test/src/stdfix/diviuk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/diviuk.h"
 
 LIST_DIVIFX_TESTS(uk, unsigned int, unsigned accum, LIBC_NAMESPACE::diviuk);
diff --git a/libc/test/src/stdfix/diviulk_test.cpp b/libc/test/src/stdfix/diviulk_test.cpp
index 4709e5728fe326..972589ecf85762 100644
--- a/libc/test/src/stdfix/diviulk_test.cpp
+++ b/libc/test/src/stdfix/diviulk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/diviulk.h"
 
 LIST_DIVIFX_TESTS(ulk, unsigned long int, unsigned long accum,
diff --git a/libc/test/src/stdfix/diviulr_test.cpp b/libc/test/src/stdfix/diviulr_test.cpp
index 48cc1f288c9197..371e96dc926efb 100644
--- a/libc/test/src/stdfix/diviulr_test.cpp
+++ b/libc/test/src/stdfix/diviulr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/diviulr.h"
 
 LIST_DIVIFX_TESTS(ulr, unsigned long int, unsigned long fract,
diff --git a/libc/test/src/stdfix/diviur_test.cpp b/libc/test/src/stdfix/diviur_test.cpp
index 6fd1c17d3cd10d..c16ade7caed590 100644
--- a/libc/test/src/stdfix/diviur_test.cpp
+++ b/libc/test/src/stdfix/diviur_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "DiviFxTest.h"
+#include "test/src/stdfix/DiviFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/diviur.h"
 
 LIST_DIVIFX_TESTS(ur, unsigned int, unsigned fract, LIBC_NAMESPACE::diviur);
diff --git a/libc/test/src/stdfix/exphk_test.cpp b/libc/test/src/stdfix/exphk_test.cpp
index 24e92dc902faea..94334027b408ee 100644
--- a/libc/test/src/stdfix/exphk_test.cpp
+++ b/libc/test/src/stdfix/exphk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ExpTest.h"
+#include "test/src/stdfix/ExpTest.h"
 
 #include "src/stdfix/exphk.h"
 
diff --git a/libc/test/src/stdfix/expk_test.cpp b/libc/test/src/stdfix/expk_test.cpp
index bc322037af04a7..868c87d5b54f59 100644
--- a/libc/test/src/stdfix/expk_test.cpp
+++ b/libc/test/src/stdfix/expk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ExpTest.h"
+#include "test/src/stdfix/ExpTest.h"
 
 #include "src/stdfix/expk.h"
 
diff --git a/libc/test/src/stdfix/hkbits_test.cpp b/libc/test/src/stdfix/hkbits_test.cpp
index c4b55e13502b55..26b8ed3de3069c 100644
--- a/libc/test/src/stdfix/hkbits_test.cpp
+++ b/libc/test/src/stdfix/hkbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/hkbits.h"
 
 LIST_FXBITS_TEST(hk, short accum, int_hk_t, LIBC_NAMESPACE::hkbits);
diff --git a/libc/test/src/stdfix/hrbits_test.cpp b/libc/test/src/stdfix/hrbits_test.cpp
index d47456a8b1d6ed..7dd9c29887702d 100644
--- a/libc/test/src/stdfix/hrbits_test.cpp
+++ b/libc/test/src/stdfix/hrbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/hrbits.h"
 
 LIST_FXBITS_TEST(hr, short fract, int_hr_t, LIBC_NAMESPACE::hrbits);
diff --git a/libc/test/src/stdfix/idivk_test.cpp b/libc/test/src/stdfix/idivk_test.cpp
index a0ac2810f74bb7..e71bdf0eaddb07 100644
--- a/libc/test/src/stdfix/idivk_test.cpp
+++ b/libc/test/src/stdfix/idivk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // accum
+#include "include/llvm-libc-macros/stdfix-macros.h" // accum
 #include "src/stdfix/idivk.h"
 
 LIST_IDIVFX_TESTS(k, accum, int, LIBC_NAMESPACE::idivk);
diff --git a/libc/test/src/stdfix/idivlk_test.cpp b/libc/test/src/stdfix/idivlk_test.cpp
index 8447e55ed1884c..b5507e63dddc5e 100644
--- a/libc/test/src/stdfix/idivlk_test.cpp
+++ b/libc/test/src/stdfix/idivlk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // long accum
+#include "include/llvm-libc-macros/stdfix-macros.h" // long accum
 #include "src/stdfix/idivlk.h"
 
 LIST_IDIVFX_TESTS(lk, long accum, long int, LIBC_NAMESPACE::idivlk);
diff --git a/libc/test/src/stdfix/idivlr_test.cpp b/libc/test/src/stdfix/idivlr_test.cpp
index 0943d6bc609c89..2ad1ea86f91513 100644
--- a/libc/test/src/stdfix/idivlr_test.cpp
+++ b/libc/test/src/stdfix/idivlr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // long fract
+#include "include/llvm-libc-macros/stdfix-macros.h" // long fract
 #include "src/stdfix/idivlr.h"
 
 LIST_IDIVFX_TESTS(lr, long fract, long int, LIBC_NAMESPACE::idivlr);
diff --git a/libc/test/src/stdfix/idivr_test.cpp b/libc/test/src/stdfix/idivr_test.cpp
index 4e8491d8434eb7..2f8e37eda0e4be 100644
--- a/libc/test/src/stdfix/idivr_test.cpp
+++ b/libc/test/src/stdfix/idivr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // fract
+#include "include/llvm-libc-macros/stdfix-macros.h" // fract
 #include "src/stdfix/idivr.h"
 
 LIST_IDIVFX_TESTS(r, fract, int, LIBC_NAMESPACE::idivr);
diff --git a/libc/test/src/stdfix/idivuk_test.cpp b/libc/test/src/stdfix/idivuk_test.cpp
index 4830e3444c64d4..33b3a6bcbdcd4c 100644
--- a/libc/test/src/stdfix/idivuk_test.cpp
+++ b/libc/test/src/stdfix/idivuk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // unsigned accum
+#include "include/llvm-libc-macros/stdfix-macros.h" // unsigned accum
 #include "src/stdfix/idivuk.h"
 
 LIST_IDIVFX_TESTS(uk, unsigned accum, unsigned int, LIBC_NAMESPACE::idivuk);
diff --git a/libc/test/src/stdfix/idivulk_test.cpp b/libc/test/src/stdfix/idivulk_test.cpp
index a6d4bc27f56872..654467fb277622 100644
--- a/libc/test/src/stdfix/idivulk_test.cpp
+++ b/libc/test/src/stdfix/idivulk_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // unsigned long accum
+#include "include/llvm-libc-macros/stdfix-macros.h" // unsigned long accum
 #include "src/stdfix/idivulk.h"
 
 LIST_IDIVFX_TESTS(ulk, unsigned long accum, unsigned long int,
diff --git a/libc/test/src/stdfix/idivulr_test.cpp b/libc/test/src/stdfix/idivulr_test.cpp
index b34a65ebc8638a..e55cbc4923abff 100644
--- a/libc/test/src/stdfix/idivulr_test.cpp
+++ b/libc/test/src/stdfix/idivulr_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // unsigned long fract
+#include "include/llvm-libc-macros/stdfix-macros.h" // unsigned long fract
 #include "src/stdfix/idivulr.h"
 
 LIST_IDIVFX_TESTS(ulr, unsigned long fract, unsigned long int,
diff --git a/libc/test/src/stdfix/idivur_test.cpp b/libc/test/src/stdfix/idivur_test.cpp
index 12280ea3df2a9f..06f7e685766de2 100644
--- a/libc/test/src/stdfix/idivur_test.cpp
+++ b/libc/test/src/stdfix/idivur_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "IdivFxTest.h"
+#include "test/src/stdfix/IdivFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h" // unsigned fract
+#include "include/llvm-libc-macros/stdfix-macros.h" // unsigned fract
 #include "src/stdfix/idivur.h"
 
 LIST_IDIVFX_TESTS(ur, unsigned fract, unsigned int, LIBC_NAMESPACE::idivur);
diff --git a/libc/test/src/stdfix/kbits_test.cpp b/libc/test/src/stdfix/kbits_test.cpp
index f646e13badc8f2..d0109838cb5feb 100644
--- a/libc/test/src/stdfix/kbits_test.cpp
+++ b/libc/test/src/stdfix/kbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/kbits.h"
 
 LIST_FXBITS_TEST(k, accum, int_k_t, LIBC_NAMESPACE::kbits);
diff --git a/libc/test/src/stdfix/kdivi_test.cpp b/libc/test/src/stdfix/kdivi_test.cpp
index faed2835aea56e..7060da75ad0764 100644
--- a/libc/test/src/stdfix/kdivi_test.cpp
+++ b/libc/test/src/stdfix/kdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/kdivi.h"
 
 LIST_FXDIVI_TESTS(k, accum, int, LIBC_NAMESPACE::kdivi);
diff --git a/libc/test/src/stdfix/lkbits_test.cpp b/libc/test/src/stdfix/lkbits_test.cpp
index f8fd3a69a2b739..383ca0ca83932a 100644
--- a/libc/test/src/stdfix/lkbits_test.cpp
+++ b/libc/test/src/stdfix/lkbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/lkbits.h"
 
 LIST_FXBITS_TEST(lk, long accum, int_lk_t, LIBC_NAMESPACE::lkbits);
diff --git a/libc/test/src/stdfix/lkdivi_test.cpp b/libc/test/src/stdfix/lkdivi_test.cpp
index 34ee45fe923c57..72fb64748740ea 100644
--- a/libc/test/src/stdfix/lkdivi_test.cpp
+++ b/libc/test/src/stdfix/lkdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/lkdivi.h"
 
 LIST_FXDIVI_TESTS(lk, long accum, long int, LIBC_NAMESPACE::lkdivi);
diff --git a/libc/test/src/stdfix/lrbits_test.cpp b/libc/test/src/stdfix/lrbits_test.cpp
index 881a8c980642bf..736112a9739142 100644
--- a/libc/test/src/stdfix/lrbits_test.cpp
+++ b/libc/test/src/stdfix/lrbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/lrbits.h"
 
 LIST_FXBITS_TEST(lr, long fract, int_lr_t, LIBC_NAMESPACE::lrbits);
diff --git a/libc/test/src/stdfix/lrdivi_test.cpp b/libc/test/src/stdfix/lrdivi_test.cpp
index da72555ad0259c..ffbda8b8a1cbd8 100644
--- a/libc/test/src/stdfix/lrdivi_test.cpp
+++ b/libc/test/src/stdfix/lrdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/lrdivi.h"
 
 LIST_FXDIVI_TESTS(lr, long fract, long int, LIBC_NAMESPACE::lrdivi);
diff --git a/libc/test/src/stdfix/macros_test.cpp b/libc/test/src/stdfix/macros_test.cpp
index b52abf3f079992..19dd4ae21d031c 100644
--- a/libc/test/src/stdfix/macros_test.cpp
+++ b/libc/test/src/stdfix/macros_test.cpp
@@ -6,7 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "AbsTest.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
+#include "test/UnitTest/Test.h"
+
 #include "src/stdfix/abshk.h"
 #include "src/stdfix/abshr.h"
 #include "src/stdfix/absk.h"
diff --git a/libc/test/src/stdfix/mulik_test.cpp b/libc/test/src/stdfix/mulik_test.cpp
index 944aebb5fd110e..65340b0ce5bfdf 100644
--- a/libc/test/src/stdfix/mulik_test.cpp
+++ b/libc/test/src/stdfix/mulik_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/mulik.h"
 
 LIST_MULIFX_TESTS(k, int, accum, LIBC_NAMESPACE::mulik);
diff --git a/libc/test/src/stdfix/mulilk_test.cpp b/libc/test/src/stdfix/mulilk_test.cpp
index a4dd95d16249b9..144f3f7fab3e25 100644
--- a/libc/test/src/stdfix/mulilk_test.cpp
+++ b/libc/test/src/stdfix/mulilk_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/mulilk.h"
 
 LIST_MULIFX_TESTS(lk, long int, long accum, LIBC_NAMESPACE::mulilk);
diff --git a/libc/test/src/stdfix/mulilr_test.cpp b/libc/test/src/stdfix/mulilr_test.cpp
index 322adb550e4362..06052edace4edd 100644
--- a/libc/test/src/stdfix/mulilr_test.cpp
+++ b/libc/test/src/stdfix/mulilr_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/mulilr.h"
 
 LIST_MULIFX_TESTS(lr, long int, long fract, LIBC_NAMESPACE::mulilr);
diff --git a/libc/test/src/stdfix/mulir_test.cpp b/libc/test/src/stdfix/mulir_test.cpp
index 61707898575a61..dc5e7221b2dbbd 100644
--- a/libc/test/src/stdfix/mulir_test.cpp
+++ b/libc/test/src/stdfix/mulir_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/mulir.h"
 
 LIST_MULIFX_TESTS(r, int, fract, LIBC_NAMESPACE::mulir);
diff --git a/libc/test/src/stdfix/muliuk_test.cpp b/libc/test/src/stdfix/muliuk_test.cpp
index abf3d1cec516af..c017cbbecee737 100644
--- a/libc/test/src/stdfix/muliuk_test.cpp
+++ b/libc/test/src/stdfix/muliuk_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/muliuk.h"
 
 LIST_MULIFX_TESTS(uk, unsigned int, unsigned accum, LIBC_NAMESPACE::muliuk);
diff --git a/libc/test/src/stdfix/muliulk_test.cpp b/libc/test/src/stdfix/muliulk_test.cpp
index 7282c12ca7b4fc..f0e7609f1a7dfd 100644
--- a/libc/test/src/stdfix/muliulk_test.cpp
+++ b/libc/test/src/stdfix/muliulk_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/muliulk.h"
 
 LIST_MULIFX_TESTS(ulk, unsigned long int, unsigned long accum,
diff --git a/libc/test/src/stdfix/muliulr_test.cpp b/libc/test/src/stdfix/muliulr_test.cpp
index 9f2d29514cb704..b47c0c0d9b73f8 100644
--- a/libc/test/src/stdfix/muliulr_test.cpp
+++ b/libc/test/src/stdfix/muliulr_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/muliulr.h"
 
 LIST_MULIFX_TESTS(ulr, unsigned long int, unsigned long fract,
diff --git a/libc/test/src/stdfix/muliur_test.cpp b/libc/test/src/stdfix/muliur_test.cpp
index 0c4bccef7bf516..76970b31b13afb 100644
--- a/libc/test/src/stdfix/muliur_test.cpp
+++ b/libc/test/src/stdfix/muliur_test.cpp
@@ -11,9 +11,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#include "MuliFxTest.h"
+#include "test/src/stdfix/MuliFxTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/muliur.h"
 
 LIST_MULIFX_TESTS(ur, unsigned int, unsigned fract, LIBC_NAMESPACE::muliur);
diff --git a/libc/test/src/stdfix/rbits_test.cpp b/libc/test/src/stdfix/rbits_test.cpp
index 12c95a5816a2e2..00dff246cbfd9f 100644
--- a/libc/test/src/stdfix/rbits_test.cpp
+++ b/libc/test/src/stdfix/rbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/rbits.h"
 
 LIST_FXBITS_TEST(r, fract, int_r_t, LIBC_NAMESPACE::rbits);
diff --git a/libc/test/src/stdfix/rdivi_test.cpp b/libc/test/src/stdfix/rdivi_test.cpp
index 49fd225d827ae6..a4b3eeefa0b7fc 100644
--- a/libc/test/src/stdfix/rdivi_test.cpp
+++ b/libc/test/src/stdfix/rdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/rdivi.h"
 
 LIST_FXDIVI_TESTS(r, fract, int, LIBC_NAMESPACE::rdivi);
diff --git a/libc/test/src/stdfix/roundhk_test.cpp b/libc/test/src/stdfix/roundhk_test.cpp
index 3cbcfb0e2b1eba..a76d885e7a483e 100644
--- a/libc/test/src/stdfix/roundhk_test.cpp
+++ b/libc/test/src/stdfix/roundhk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundhk.h"
 
diff --git a/libc/test/src/stdfix/roundhr_test.cpp b/libc/test/src/stdfix/roundhr_test.cpp
index 9e58fb5b29061e..7ff1990a978927 100644
--- a/libc/test/src/stdfix/roundhr_test.cpp
+++ b/libc/test/src/stdfix/roundhr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundhr.h"
 
diff --git a/libc/test/src/stdfix/roundk_test.cpp b/libc/test/src/stdfix/roundk_test.cpp
index 4092ce3c6f6329..1556ca9b32b97e 100644
--- a/libc/test/src/stdfix/roundk_test.cpp
+++ b/libc/test/src/stdfix/roundk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundk.h"
 
diff --git a/libc/test/src/stdfix/roundlk_test.cpp b/libc/test/src/stdfix/roundlk_test.cpp
index c8bd1c9cb7ec04..261a5209ddfc31 100644
--- a/libc/test/src/stdfix/roundlk_test.cpp
+++ b/libc/test/src/stdfix/roundlk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundlk.h"
 
diff --git a/libc/test/src/stdfix/roundlr_test.cpp b/libc/test/src/stdfix/roundlr_test.cpp
index 53bfbb8fc6a0e8..cbdf620eb47eec 100644
--- a/libc/test/src/stdfix/roundlr_test.cpp
+++ b/libc/test/src/stdfix/roundlr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundlr.h"
 
diff --git a/libc/test/src/stdfix/roundr_test.cpp b/libc/test/src/stdfix/roundr_test.cpp
index 68527f1fa1400b..611866724a9a4a 100644
--- a/libc/test/src/stdfix/roundr_test.cpp
+++ b/libc/test/src/stdfix/roundr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundr.h"
 
diff --git a/libc/test/src/stdfix/rounduhk_test.cpp b/libc/test/src/stdfix/rounduhk_test.cpp
index d03774b681559c..77e5afa6df15c8 100644
--- a/libc/test/src/stdfix/rounduhk_test.cpp
+++ b/libc/test/src/stdfix/rounduhk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/rounduhk.h"
 
diff --git a/libc/test/src/stdfix/rounduhr_test.cpp b/libc/test/src/stdfix/rounduhr_test.cpp
index 889827c3349e51..e9802a56b7f8b9 100644
--- a/libc/test/src/stdfix/rounduhr_test.cpp
+++ b/libc/test/src/stdfix/rounduhr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/rounduhr.h"
 
diff --git a/libc/test/src/stdfix/rounduk_test.cpp b/libc/test/src/stdfix/rounduk_test.cpp
index fbf73d5844f1d7..1715b24e9b1006 100644
--- a/libc/test/src/stdfix/rounduk_test.cpp
+++ b/libc/test/src/stdfix/rounduk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/rounduk.h"
 
diff --git a/libc/test/src/stdfix/roundulk_test.cpp b/libc/test/src/stdfix/roundulk_test.cpp
index 92db54e186c85b..d6e49f687a42c6 100644
--- a/libc/test/src/stdfix/roundulk_test.cpp
+++ b/libc/test/src/stdfix/roundulk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundulk.h"
 
diff --git a/libc/test/src/stdfix/roundulr_test.cpp b/libc/test/src/stdfix/roundulr_test.cpp
index 11cbb46263aee0..8905e2fe522716 100644
--- a/libc/test/src/stdfix/roundulr_test.cpp
+++ b/libc/test/src/stdfix/roundulr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundulr.h"
 
diff --git a/libc/test/src/stdfix/roundur_test.cpp b/libc/test/src/stdfix/roundur_test.cpp
index 636f3482cdaeb5..0ed85fea2b3a20 100644
--- a/libc/test/src/stdfix/roundur_test.cpp
+++ b/libc/test/src/stdfix/roundur_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "RoundTest.h"
+#include "test/src/stdfix/RoundTest.h"
 
 #include "src/stdfix/roundur.h"
 
diff --git a/libc/test/src/stdfix/sqrtuhk_test.cpp b/libc/test/src/stdfix/sqrtuhk_test.cpp
index d6ff5385cab863..99b4f534b643e0 100644
--- a/libc/test/src/stdfix/sqrtuhk_test.cpp
+++ b/libc/test/src/stdfix/sqrtuhk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "SqrtTest.h"
+#include "test/src/stdfix/SqrtTest.h"
 
 #include "src/stdfix/sqrtuhk.h"
 
diff --git a/libc/test/src/stdfix/sqrtuhr_test.cpp b/libc/test/src/stdfix/sqrtuhr_test.cpp
index 22f00a4231b312..cdd95020957444 100644
--- a/libc/test/src/stdfix/sqrtuhr_test.cpp
+++ b/libc/test/src/stdfix/sqrtuhr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "SqrtTest.h"
+#include "test/src/stdfix/SqrtTest.h"
 
 #include "src/stdfix/sqrtuhr.h"
 
diff --git a/libc/test/src/stdfix/sqrtuk_test.cpp b/libc/test/src/stdfix/sqrtuk_test.cpp
index 5a3105de1e0bff..5dc43b1313b0fb 100644
--- a/libc/test/src/stdfix/sqrtuk_test.cpp
+++ b/libc/test/src/stdfix/sqrtuk_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "SqrtTest.h"
+#include "test/src/stdfix/SqrtTest.h"
 
 #include "src/stdfix/sqrtuk.h"
 
diff --git a/libc/test/src/stdfix/sqrtulr_test.cpp b/libc/test/src/stdfix/sqrtulr_test.cpp
index 1be4e2b5e0a6f9..5d9f7aa56211f3 100644
--- a/libc/test/src/stdfix/sqrtulr_test.cpp
+++ b/libc/test/src/stdfix/sqrtulr_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "SqrtTest.h"
+#include "test/src/stdfix/SqrtTest.h"
 
 #include "src/stdfix/sqrtulr.h"
 
diff --git a/libc/test/src/stdfix/sqrtur_test.cpp b/libc/test/src/stdfix/sqrtur_test.cpp
index 12b1c2211db054..f7e1cdef7fc356 100644
--- a/libc/test/src/stdfix/sqrtur_test.cpp
+++ b/libc/test/src/stdfix/sqrtur_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "SqrtTest.h"
+#include "test/src/stdfix/SqrtTest.h"
 
 #include "src/stdfix/sqrtur.h"
 
diff --git a/libc/test/src/stdfix/uhkbits_test.cpp b/libc/test/src/stdfix/uhkbits_test.cpp
index b57e23b1cffd64..7c57e9b6cb9bec 100644
--- a/libc/test/src/stdfix/uhkbits_test.cpp
+++ b/libc/test/src/stdfix/uhkbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/uhkbits.h"
 
 LIST_FXBITS_TEST(uhk, unsigned short accum, uint_uhk_t,
diff --git a/libc/test/src/stdfix/uhksqrtus_test.cpp b/libc/test/src/stdfix/uhksqrtus_test.cpp
index a33297413980de..740bdfac9bcc38 100644
--- a/libc/test/src/stdfix/uhksqrtus_test.cpp
+++ b/libc/test/src/stdfix/uhksqrtus_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ISqrtTest.h"
+#include "test/src/stdfix/ISqrtTest.h"
 
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/stdfix/uhksqrtus.h"
diff --git a/libc/test/src/stdfix/uhrbits_test.cpp b/libc/test/src/stdfix/uhrbits_test.cpp
index 1a9d2c6cecca20..849ecec74a9de3 100644
--- a/libc/test/src/stdfix/uhrbits_test.cpp
+++ b/libc/test/src/stdfix/uhrbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/uhrbits.h"
 
 LIST_FXBITS_TEST(uhr, unsigned short fract, uint_uhr_t,
diff --git a/libc/test/src/stdfix/ukbits_test.cpp b/libc/test/src/stdfix/ukbits_test.cpp
index bad707f49474b8..16cf6c8f7f23f6 100644
--- a/libc/test/src/stdfix/ukbits_test.cpp
+++ b/libc/test/src/stdfix/ukbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/ukbits.h"
 
 LIST_FXBITS_TEST(uk, unsigned accum, uint_uk_t, LIBC_NAMESPACE::ukbits);
diff --git a/libc/test/src/stdfix/ukdivi_test.cpp b/libc/test/src/stdfix/ukdivi_test.cpp
index 7bd9311eabc05d..0d193eda620afe 100644
--- a/libc/test/src/stdfix/ukdivi_test.cpp
+++ b/libc/test/src/stdfix/ukdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/ukdivi.h"
 
 LIST_FXDIVI_TESTS(uk, unsigned accum, unsigned int, LIBC_NAMESPACE::ukdivi);
diff --git a/libc/test/src/stdfix/uksqrtui_test.cpp b/libc/test/src/stdfix/uksqrtui_test.cpp
index c336d0ce1f6176..7d4749fe9c8fb0 100644
--- a/libc/test/src/stdfix/uksqrtui_test.cpp
+++ b/libc/test/src/stdfix/uksqrtui_test.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "ISqrtTest.h"
+#include "test/src/stdfix/ISqrtTest.h"
 
 #include "src/__support/fixed_point/sqrt.h"
 #include "src/stdfix/uksqrtui.h"
diff --git a/libc/test/src/stdfix/ulkbits_test.cpp b/libc/test/src/stdfix/ulkbits_test.cpp
index 3ee54be4c4f003..a2590192273573 100644
--- a/libc/test/src/stdfix/ulkbits_test.cpp
+++ b/libc/test/src/stdfix/ulkbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/ulkbits.h"
 
 LIST_FXBITS_TEST(ulk, unsigned long accum, uint_ulk_t, LIBC_NAMESPACE::ulkbits);
diff --git a/libc/test/src/stdfix/ulkdivi_test.cpp b/libc/test/src/stdfix/ulkdivi_test.cpp
index 364af81d520c9d..68de18e6e65dbb 100644
--- a/libc/test/src/stdfix/ulkdivi_test.cpp
+++ b/libc/test/src/stdfix/ulkdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/ulkdivi.h"
 
 LIST_FXDIVI_TESTS(ulk, unsigned long accum, unsigned long int,
diff --git a/libc/test/src/stdfix/ulrbits_test.cpp b/libc/test/src/stdfix/ulrbits_test.cpp
index a248deb6e5aad3..1b007277e85a6e 100644
--- a/libc/test/src/stdfix/ulrbits_test.cpp
+++ b/libc/test/src/stdfix/ulrbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/ulrbits.h"
 
 LIST_FXBITS_TEST(ulr, unsigned long fract, uint_ulr_t, LIBC_NAMESPACE::ulrbits);
diff --git a/libc/test/src/stdfix/ulrdivi_test.cpp b/libc/test/src/stdfix/ulrdivi_test.cpp
index 3799c4ace1e2be..16c67a5726cfd3 100644
--- a/libc/test/src/stdfix/ulrdivi_test.cpp
+++ b/libc/test/src/stdfix/ulrdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/ulrdivi.h"
 
 LIST_FXDIVI_TESTS(ulr, unsigned long fract, unsigned long int,
diff --git a/libc/test/src/stdfix/urbits_test.cpp b/libc/test/src/stdfix/urbits_test.cpp
index 285b0170a3bf38..cd0c19b6709bec 100644
--- a/libc/test/src/stdfix/urbits_test.cpp
+++ b/libc/test/src/stdfix/urbits_test.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxBitsTest.h"
+#include "test/src/stdfix/FxBitsTest.h"
+
 #include "src/stdfix/urbits.h"
 
 LIST_FXBITS_TEST(ur, unsigned fract, uint_ur_t, LIBC_NAMESPACE::urbits);
diff --git a/libc/test/src/stdfix/urdivi_test.cpp b/libc/test/src/stdfix/urdivi_test.cpp
index 971a6a358ea8b1..efae63a232fc28 100644
--- a/libc/test/src/stdfix/urdivi_test.cpp
+++ b/libc/test/src/stdfix/urdivi_test.cpp
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FxDiviTest.h"
+#include "test/src/stdfix/FxDiviTest.h"
 
-#include "llvm-libc-macros/stdfix-macros.h"
+#include "include/llvm-libc-macros/stdfix-macros.h"
 #include "src/stdfix/urdivi.h"
 
 LIST_FXDIVI_TESTS(ur, unsigned fract, unsigned int, LIBC_NAMESPACE::urdivi);



More information about the libc-commits mailing list