cpu_arm.go 963 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package cpu
  5. const cacheLineSize = 32
  6. // HWCAP/HWCAP2 bits.
  7. // These are specific to Linux.
  8. const (
  9. hwcap_SWP = 1 << 0
  10. hwcap_HALF = 1 << 1
  11. hwcap_THUMB = 1 << 2
  12. hwcap_26BIT = 1 << 3
  13. hwcap_FAST_MULT = 1 << 4
  14. hwcap_FPA = 1 << 5
  15. hwcap_VFP = 1 << 6
  16. hwcap_EDSP = 1 << 7
  17. hwcap_JAVA = 1 << 8
  18. hwcap_IWMMXT = 1 << 9
  19. hwcap_CRUNCH = 1 << 10
  20. hwcap_THUMBEE = 1 << 11
  21. hwcap_NEON = 1 << 12
  22. hwcap_VFPv3 = 1 << 13
  23. hwcap_VFPv3D16 = 1 << 14
  24. hwcap_TLS = 1 << 15
  25. hwcap_VFPv4 = 1 << 16
  26. hwcap_IDIVA = 1 << 17
  27. hwcap_IDIVT = 1 << 18
  28. hwcap_VFPD32 = 1 << 19
  29. hwcap_LPAE = 1 << 20
  30. hwcap_EVTSTRM = 1 << 21
  31. hwcap2_AES = 1 << 0
  32. hwcap2_PMULL = 1 << 1
  33. hwcap2_SHA1 = 1 << 2
  34. hwcap2_SHA2 = 1 << 3
  35. hwcap2_CRC32 = 1 << 4
  36. )