dl-procruntime.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Data for processor runtime information. x86 version.
  2. Copyright (C) 2018-2019 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. /* This information must be kept in sync with the _DL_HWCAP_COUNT,
  16. HWCAP_PLATFORMS_START and HWCAP_PLATFORMS_COUNT definitions in
  17. dl-hwcap.h.
  18. If anything should be added here check whether the size of each string
  19. is still ok with the given array size.
  20. All the #ifdefs in the definitions are quite irritating but
  21. necessary if we want to avoid duplicating the information. There
  22. are three different modes:
  23. - PROCINFO_DECL is defined. This means we are only interested in
  24. declarations.
  25. - PROCINFO_DECL is not defined:
  26. + if SHARED is defined the file is included in an array
  27. initializer. The .element = { ... } syntax is needed.
  28. + if SHARED is not defined a normal array initialization is
  29. needed.
  30. */
  31. #ifndef PROCINFO_CLASS
  32. # define PROCINFO_CLASS
  33. #endif
  34. #if !IS_IN (ldconfig)
  35. # if !defined PROCINFO_DECL && defined SHARED
  36. ._dl_x86_feature_1
  37. # else
  38. PROCINFO_CLASS unsigned int _dl_x86_feature_1[2]
  39. # endif
  40. # if !defined SHARED || defined PROCINFO_DECL
  41. ;
  42. # else
  43. ,
  44. # endif
  45. # if !defined PROCINFO_DECL && defined SHARED
  46. ._dl_x86_legacy_bitmap
  47. # else
  48. PROCINFO_CLASS unsigned long _dl_x86_legacy_bitmap[2]
  49. # endif
  50. # if !defined SHARED || defined PROCINFO_DECL
  51. ;
  52. # else
  53. ,
  54. # endif
  55. #endif