Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37837620
en ru br
ALT Linux repositórios
S:2.38.0.23.0e1ef6779a-alt1
5.0: 2.9-alt5
4.1: 2.5.1-alt4.M41.2
4.0: 2.5-alt4.M40.2
3.0: 2.3.5-alt5

Outros repositórios

Group :: Sistema/Base
RPM: glibc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: glibc-2.3.3-suse-x86_64-fpu-s_ceil.patch
Download


This fixes ceil (x) for -1.0 < x < 0.
--- sysdeps/x86_64/fpu/s_ceil.c	2003-11-26 15:25:50.000000000 +0100
+++ sysdeps/x86_64/fpu/s_ceil.c	2003-11-27 13:57:35.000000000 +0100
@@ -34,7 +34,11 @@
         /* x is +zero or -zero; return the same zero */
           return x;
       else if (xneg) /* x < 0.0 */
-        return 0.0;
+       {
+          /* Return zero with the sign of x */
+          PUT_BITS_DP64(SIGNBIT_DP64, x);
+          return x;
+       }
       else
         return 1.0;
     }
--- sysdeps/x86_64/fpu/s_ceilf.c	2003-11-26 15:25:50.000000000 +0100
+++ sysdeps/x86_64/fpu/s_ceilf.c	2003-11-27 13:57:35.000000000 +0100
@@ -34,7 +34,11 @@
         /* x is +zero or -zero; return the same zero */
         return x;
       else if (xneg) /* x < 0.0 */
-        return 0.0F;
+        {
+      	   /* Return zero with the sign of x */
+           PUT_BITS_SP32(SIGNBIT_SP32, x);
+           return x;
+        }
       else
         return 1.0F;
     }
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009