This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add definitions of double_t and float_t to math.h.
ClosedPublic

Authored by sivachandra on Apr 29 2020, 4:44 PM.

Details

Summary

This change does not handle any extensions. Only the C standard
variations are handled.

Diff Detail

Event Timeline

sivachandra created this revision.Apr 29 2020, 4:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2020, 4:44 PM
abrachet added inline comments.Apr 29 2020, 8:48 PM
libc/include/__llvm-libc-stdc-types.h
18

Is it better to do #define __LLVM_LIBC_FLOAT_T float and then typdef __LLVM_LIBC_FLOAT_T float_t bellow? That also somewhat mirrors what we do in __posix_types.h with __INT64_TYPE__

Address comments.

sivachandra marked an inline comment as done.Apr 30 2020, 11:04 AM
sivachandra added inline comments.
libc/include/__llvm-libc-stdc-types.h
18

Indeed.

abrachet accepted this revision.Apr 30 2020, 11:19 AM
This revision is now accepted and ready to land.Apr 30 2020, 11:19 AM
This revision was automatically updated to reflect the committed changes.