This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add hardware implementations of ceil and ceilf for aarch64.
ClosedPublic

Authored by sivachandra on Feb 1 2021, 11:47 PM.

Details

Summary

This change also introduces a new source layout for adding machine
specific and generic implementations. To keep the scope of this change
small, this new pattern is only applied for ceil, ceilf and ceill.
Follow up changes will switch all math functions in to the new pattern.

Diff Detail

Event Timeline

sivachandra created this revision.Feb 1 2021, 11:47 PM
sivachandra requested review of this revision.Feb 1 2021, 11:47 PM
lntue added a comment.Feb 2 2021, 6:15 AM

Do we need to remove ceil(f|l).(h|cpp) in src/math folder?

Move generic implementations of ceil* functions to the generic directory.

Do we need to remove ceil(f|l).(h|cpp) in src/math folder?

Hopefully I got it right this time. I have removed the .cpp files but kept the .h files.

lntue accepted this revision.Feb 2 2021, 11:25 AM
This revision is now accepted and ready to land.Feb 2 2021, 11:25 AM