From 11563b1a4ddc8916c51905f5c0ec4f08a01e937c Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Fri, 16 Jan 2026 10:09:25 -0800 Subject: [PATCH] Remove compound_adder(), not used anymore. Its use was removed in 54d29b76e2f7e836f9d4bbffe99c86c272077b8c It is a non-public function, so no other component will depend on it as well. PiperOrigin-RevId: 857206938 --- xls/dslx/stdlib/apfloat.x | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xls/dslx/stdlib/apfloat.x b/xls/dslx/stdlib/apfloat.x index cc63d41793..0e8181fe7d 100644 --- a/xls/dslx/stdlib/apfloat.x +++ b/xls/dslx/stdlib/apfloat.x @@ -2998,10 +2998,6 @@ fn to_uint_test() { u4:0, to_uint(APFloat { sign: u1:1, bexp: u8:0x80, fraction: u7:0 })); } -fn compound_adder(a: uN[WIDTH], b: uN[WIDTH]) -> (uN[WIDTH], uN[WIDTH]) { - (a + b, a + b + uN[WIDTH]:1) -} - // Calculate difference of two positive values and return values in sign-magnitude // form. Returns sign-magnitude tuple (|a| - |b| <= 0, abs(|a| - |b|)). // Note, this returns -0 if (a == b), which is used in our application, which is good