]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove warning and little optimization.
authorUlrich Drepper <drepper@redhat.com>
Thu, 16 Jul 2009 14:18:53 +0000 (07:18 -0700)
committerUlrich Drepper <drepper@redhat.com>
Thu, 16 Jul 2009 14:18:53 +0000 (07:18 -0700)
The prototype for _dl_higher_prime_number was missing.  While at it,
the function is now marked with internal_function.

ChangeLog
elf/dl-misc.c
sysdeps/generic/ldsodefs.h

index 1bfdd7b56d544fbaa49d111686afc76f433b1ce6..48b5d029f38ae3138dc8c393d1b174e51136cba4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/generic/ldsodefs.h: Add prototype for
+       _dl_higher_prime_number.
+       * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
+
        * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
        restoring of ymm registers a bit.
 
index 7d4e1a1725cf9ee4613bb71d8d0a85cf84185935..d50537ade755c5f9ce76a321a6b024af9eed3ffa 100644 (file)
@@ -315,6 +315,7 @@ _dl_name_match_p (const char *name, const struct link_map *map)
 
 
 unsigned long int
+internal_function
 _dl_higher_prime_number (unsigned long int n)
 {
   /* These are primes that are near, but slightly smaller than, a
index 1e1bb4ccd4ade033213fa28ed3f833cbd5f2eeb5..30f9d23091975ac584ff42d2172cbc377cf1849e 100644 (file)
@@ -335,6 +335,10 @@ struct audit_ifaces
 extern int _dl_name_match_p (const char *__name, const struct link_map *__map)
      internal_function;
 
+/* Compute next higher prime number.  */
+extern unsigned long int _dl_higher_prime_number (unsigned long int n)
+     internal_function;
+
 /* Function used as argument for `_dl_receive_error' function.  The
    arguments are the error code, error string, and the objname the
    error occurred in.  */