forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] move non <bit> functions to math_extras (llvm#84818)
As per TODOs added in llvm@48b0bc8.
- Loading branch information
1 parent
261e564
commit 0ebf511
Showing
31 changed files
with
154 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,38 @@ | ||
function(declare_dependencies prefixes dependencies) | ||
set(suffixes c s i l ll) | ||
foreach(prefix ${prefixes}) | ||
foreach(suffix IN LISTS suffixes) | ||
add_entrypoint_object( | ||
stdc_${prefix}_u${suffix} | ||
SRCS | ||
stdc_${prefix}_u${suffix}.cpp | ||
HDRS | ||
stdc_${prefix}_u${suffix}.h | ||
DEPENDS | ||
${dependencies} | ||
) | ||
endforeach() | ||
endforeach() | ||
endfunction() | ||
|
||
|
||
set(prefixes | ||
leading_zeros | ||
leading_ones | ||
trailing_zeros | ||
trailing_ones | ||
first_leading_zero | ||
first_leading_one | ||
first_trailing_zero | ||
first_trailing_one | ||
count_zeros | ||
count_ones | ||
has_single_bit | ||
bit_width | ||
bit_floor | ||
bit_ceil | ||
) | ||
set(suffixes c s i l ll) | ||
foreach(prefix IN LISTS prefixes) | ||
foreach(suffix IN LISTS suffixes) | ||
add_entrypoint_object( | ||
stdc_${prefix}_u${suffix} | ||
SRCS | ||
stdc_${prefix}_u${suffix}.cpp | ||
HDRS | ||
stdc_${prefix}_u${suffix}.h | ||
DEPENDS | ||
libc.src.__support.CPP.bit | ||
) | ||
endforeach() | ||
endforeach() | ||
declare_dependencies("${prefixes}" libc.src.__support.CPP.bit) | ||
set(prefixes | ||
first_leading_zero | ||
first_leading_one | ||
first_trailing_zero | ||
first_trailing_one | ||
count_zeros | ||
) | ||
declare_dependencies("${prefixes}" libc.src.__support.math_extras) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.