ec_multibinary_darwin.asm 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ; Copyright(c) 2011-2015 Intel Corporation All rights reserved.
  3. ;
  4. ; Redistribution and use in source and binary forms, with or without
  5. ; modification, are permitted provided that the following conditions
  6. ; are met:
  7. ; * Redistributions of source code must retain the above copyright
  8. ; notice, this list of conditions and the following disclaimer.
  9. ; * Redistributions in binary form must reproduce the above copyright
  10. ; notice, this list of conditions and the following disclaimer in
  11. ; the documentation and/or other materials provided with the
  12. ; distribution.
  13. ; * Neither the name of Intel Corporation nor the names of its
  14. ; contributors may be used to endorse or promote products derived
  15. ; from this software without specific prior written permission.
  16. ;
  17. ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  18. ; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  19. ; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  20. ; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  21. ; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  22. ; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  23. ; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  24. ; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  25. ; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  27. ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  29. %include "reg_sizes.asm"
  30. %include "multibinary.asm"
  31. %ifidn __OUTPUT_FORMAT__, elf32
  32. [bits 32]
  33. %else
  34. default rel
  35. [bits 64]
  36. extern _ec_encode_data_update_sse
  37. extern _ec_encode_data_update_avx
  38. extern _ec_encode_data_update_avx2
  39. %ifdef HAVE_AS_KNOWS_AVX512
  40. extern _ec_encode_data_avx512
  41. extern _gf_vect_dot_prod_avx512
  42. extern _ec_encode_data_update_avx512
  43. extern _gf_vect_mad_avx512
  44. %endif
  45. extern _gf_vect_mul_sse
  46. extern _gf_vect_mul_avx
  47. extern _gf_vect_mad_sse
  48. extern _gf_vect_mad_avx
  49. extern _gf_vect_mad_avx2
  50. %endif
  51. %if (AS_FEATURE_LEVEL) >= 10
  52. extern _ec_init_tables_gfni
  53. extern _ec_encode_data_avx512_gfni
  54. extern _ec_encode_data_avx2_gfni
  55. extern _ec_encode_data_update_avx512_gfni
  56. extern _ec_encode_data_update_avx2_gfni
  57. %endif
  58. extern _ec_init_tables_base
  59. extern _gf_vect_mul_base
  60. extern _ec_encode_data_base
  61. extern _ec_encode_data_update_base
  62. extern _gf_vect_dot_prod_base
  63. extern _gf_vect_mad_base
  64. extern _gf_vect_dot_prod_sse
  65. extern _gf_vect_dot_prod_avx
  66. extern _gf_vect_dot_prod_avx2
  67. extern _ec_encode_data_sse
  68. extern _ec_encode_data_avx
  69. extern _ec_encode_data_avx2
  70. mbin_interface _ec_encode_data
  71. mbin_interface _gf_vect_dot_prod
  72. mbin_interface _gf_vect_mul
  73. mbin_interface _ec_encode_data_update
  74. mbin_interface _gf_vect_mad
  75. mbin_interface _ec_init_tables
  76. %ifidn __OUTPUT_FORMAT__, elf32
  77. mbin_dispatch_init5 _ec_encode_data, _ec_encode_data_base, _ec_encode_data_sse, _ec_encode_data_avx, _ec_encode_data_avx2
  78. mbin_dispatch_init5 _gf_vect_dot_prod, _gf_vect_dot_prod_base, _gf_vect_dot_prod_sse, _gf_vect_dot_prod_avx, _gf_vect_dot_prod_avx2
  79. mbin_dispatch_init2 _gf_vect_mul, _gf_vect_mul_base
  80. mbin_dispatch_init2 _ec_encode_data_update, _ec_encode_data_update_base
  81. mbin_dispatch_init2 _gf_vect_mad, _gf_vect_mad_base
  82. mbin_dispatch_init2 _ec_init_tables, _ec_init_tables_base
  83. %else
  84. mbin_dispatch_init5 _gf_vect_mul, _gf_vect_mul_base, _gf_vect_mul_sse, _gf_vect_mul_avx, _gf_vect_mul_avx
  85. mbin_dispatch_init8 _ec_encode_data, _ec_encode_data_base, _ec_encode_data_sse, _ec_encode_data_avx, _ec_encode_data_avx2, _ec_encode_data_avx512, _ec_encode_data_avx2_gfni, _ec_encode_data_avx512_gfni
  86. mbin_dispatch_init8 _ec_encode_data_update, _ec_encode_data_update_base, _ec_encode_data_update_sse, _ec_encode_data_update_avx, _ec_encode_data_update_avx2, _ec_encode_data_update_avx512, _ec_encode_data_update_avx2_gfni, _ec_encode_data_update_avx512_gfni
  87. mbin_dispatch_init6 _gf_vect_mad, _gf_vect_mad_base, _gf_vect_mad_sse, _gf_vect_mad_avx, _gf_vect_mad_avx2, _gf_vect_mad_avx512
  88. mbin_dispatch_init6 _gf_vect_dot_prod, _gf_vect_dot_prod_base, _gf_vect_dot_prod_sse, _gf_vect_dot_prod_avx, _gf_vect_dot_prod_avx2, _gf_vect_dot_prod_avx512
  89. mbin_dispatch_init8 _ec_init_tables, _ec_init_tables_base, _ec_init_tables_base, _ec_init_tables_base, _ec_init_tables_base, _ec_init_tables_base, _ec_init_tables_gfni, _ec_init_tables_gfni
  90. %endif