[libc-commits] [PATCH] D117584: [libc] Specialize portion of hypot for x86_64 CPUs.
Clint Caywood via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Jan 18 10:34:51 PST 2022
cratonica created this revision.
cratonica added a reviewer: lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
cratonica requested review of this revision.
This changes leverages the BSR instruction to find the leading 1 bit, reducing
what was previously an iterative look-up-table approach to a single
instruction on supported CPUs.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117584
Files:
libc/src/__support/CMakeLists.txt
libc/src/__support/FPUtil/CMakeLists.txt
libc/src/__support/FPUtil/Hypot.h
libc/src/__support/find_leading_one.h
libc/src/__support/generic/find_leading_one.h
libc/src/__support/x86_64/find_leading_one.h
libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/find_leading_one_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117584.400910.patch
Type: text/x-patch
Size: 9396 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220118/c9d9df53/attachment.bin>
More information about the libc-commits
mailing list