diff options
author | Alexandre Oliva <oliva@adacore.com> | 2020-10-12 18:55:37 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2020-10-12 18:55:37 -0300 |
commit | db36e78ca183563fe72aee0f26bb3bead6898556 (patch) | |
tree | 4f29ba7cc6bf9db93ce7c1159c0dd80cc40fb149 /gcc/ada/libgnat | |
parent | 6f0a4ae1274cc41ee9d9a142af5e51e416a2c08d (diff) | |
download | gcc-db36e78ca183563fe72aee0f26bb3bead6898556.zip gcc-db36e78ca183563fe72aee0f26bb3bead6898556.tar.gz gcc-db36e78ca183563fe72aee0f26bb3bead6898556.tar.bz2 |
make sin and cos generics inlineable
Enable the sincos optimization within callers of these
(single-argument) elementary functions.
for gcc/ada/ChangeLog
* libgnat/a-ngelfu.ads (Sin, Cos): Make the single-argument
functions inline.
Diffstat (limited to 'gcc/ada/libgnat')
-rw-r--r-- | gcc/ada/libgnat/a-ngelfu.ads | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ada/libgnat/a-ngelfu.ads b/gcc/ada/libgnat/a-ngelfu.ads index 1a8e176..70f9b7a 100644 --- a/gcc/ada/libgnat/a-ngelfu.ads +++ b/gcc/ada/libgnat/a-ngelfu.ads @@ -92,6 +92,7 @@ is and then (if Left = 0.0 then "**"'Result = 0.0); function Sin (X : Float_Type'Base) return Float_Type'Base with + Inline, Post => Sin'Result in -1.0 .. 1.0 and then (if X = 0.0 then Sin'Result = 0.0); @@ -101,6 +102,7 @@ is and then (if X = 0.0 then Sin'Result = 0.0); function Cos (X : Float_Type'Base) return Float_Type'Base with + Inline, Post => Cos'Result in -1.0 .. 1.0 and then (if X = 0.0 then Cos'Result = 1.0); |