public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] make sin and cos generics inlineable Date: Wed, 7 Oct 2020 13:58:37 +0000 (GMT) [thread overview] Message-ID: <20201007135837.730623861841@sourceware.org> (raw) https://gcc.gnu.org/g:15af82f31a5e371171be80e6e34ffb74d2c5c658 commit 15af82f31a5e371171be80e6e34ffb74d2c5c658 Author: Alexandre Oliva <oliva@adacore.com> Date: Tue Sep 29 12:52:41 2020 -0300 make sin and cos generics inlineable Diff: --- gcc/ada/libgnat/a-ngelfu.ads | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/ada/libgnat/a-ngelfu.ads b/gcc/ada/libgnat/a-ngelfu.ads index 1a8e1764d21..957c4946aec 100644 --- a/gcc/ada/libgnat/a-ngelfu.ads +++ b/gcc/ada/libgnat/a-ngelfu.ads @@ -94,6 +94,7 @@ is function Sin (X : Float_Type'Base) return Float_Type'Base with Post => Sin'Result in -1.0 .. 1.0 and then (if X = 0.0 then Sin'Result = 0.0); + pragma Inline (Sin); function Sin (X, Cycle : Float_Type'Base) return Float_Type'Base with Pre => Cycle > 0.0, @@ -103,6 +104,7 @@ is function Cos (X : Float_Type'Base) return Float_Type'Base with Post => Cos'Result in -1.0 .. 1.0 and then (if X = 0.0 then Cos'Result = 1.0); + pragma Inline (Cos); function Cos (X, Cycle : Float_Type'Base) return Float_Type'Base with Pre => Cycle > 0.0,
next reply other threads:[~2020-10-07 13:58 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-07 13:58 Alexandre Oliva [this message] -- strict thread matches above, loose matches on Subject: below -- 2020-10-12 17:31 Alexandre Oliva 2020-10-07 10:50 Alexandre Oliva 2020-10-06 10:45 Alexandre Oliva
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201007135837.730623861841@sourceware.org \ --to=aoliva@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).