Skip to content

Commit c31e539

Browse files
committed
nit: share loop for countlsfx and roundfx
1 parent e0acc36 commit c31e539

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

libc/src/stdfix/CMakeLists.txt

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
5353
libc.src.__support.CPP.bit
5454
libc.src.__support.fixed_point.fx_bits
5555
)
56+
57+
add_entrypoint_object(
58+
countls${suffix}
59+
HDRS
60+
countls${suffix}.h
61+
SRCS
62+
countls${suffix}.cpp
63+
COMPILE_OPTIONS
64+
${libc_opt_high_flag}
65+
DEPENDS
66+
libc.src.__support.fixed_point.fx_bits
67+
)
5668
endforeach()
5769

5870
add_entrypoint_object(
@@ -104,19 +116,3 @@ add_entrypoint_object(
104116
libc.src.__support.fixed_point.fx_rep
105117
libc.src.__support.CPP.bit
106118
)
107-
108-
109-
foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
110-
add_entrypoint_object(
111-
countls${suffix}
112-
HDRS
113-
countls${suffix}.h
114-
SRCS
115-
countls${suffix}.cpp
116-
COMPILE_OPTIONS
117-
${libc_opt_high_flag}
118-
DEPENDS
119-
libc.src.__support.fixed_point.fx_bits
120-
)
121-
122-
endforeach()

0 commit comments

Comments
 (0)