]> git.proxmox.com Git - ceph.git/blob - ceph/src/isa-l/crc/crc64_multibinary.asm
update sources to v12.1.1
[ceph.git] / ceph / src / isa-l / crc / crc64_multibinary.asm
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2 ; Copyright(c) 2011-2016 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
30 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
31 ;;;
32 ;;; uint64_t crc64_func(uint64_t init_crc, const unsigned char *buf, uint64_t len);
33 ;;;
34
35 default rel
36 [bits 64]
37
38 %ifidn __OUTPUT_FORMAT__, elf64
39 %define WRT_OPT wrt ..plt
40 %else
41 %define WRT_OPT
42 %endif
43
44 %include "reg_sizes.asm"
45
46 extern crc64_ecma_refl_by8
47 extern crc64_ecma_refl_base
48
49 extern crc64_ecma_norm_by8
50 extern crc64_ecma_norm_base
51
52 extern crc64_iso_refl_by8
53 extern crc64_iso_refl_base
54
55 extern crc64_iso_norm_by8
56 extern crc64_iso_norm_base
57
58 extern crc64_jones_refl_by8
59 extern crc64_jones_refl_base
60
61 extern crc64_jones_norm_by8
62 extern crc64_jones_norm_base
63
64 section .text
65
66 %include "multibinary.asm"
67
68 mbin_interface crc64_ecma_refl
69 mbin_dispatch_init_clmul crc64_ecma_refl, crc64_ecma_refl_base, crc64_ecma_refl_by8
70 mbin_interface crc64_ecma_norm
71 mbin_dispatch_init_clmul crc64_ecma_norm, crc64_ecma_norm_base, crc64_ecma_norm_by8
72
73 mbin_interface crc64_iso_refl
74 mbin_dispatch_init_clmul crc64_iso_refl, crc64_iso_refl_base, crc64_iso_refl_by8
75 mbin_interface crc64_iso_norm
76 mbin_dispatch_init_clmul crc64_iso_norm, crc64_iso_norm_base, crc64_iso_norm_by8
77
78 mbin_interface crc64_jones_refl
79 mbin_dispatch_init_clmul crc64_jones_refl, crc64_jones_refl_base, crc64_jones_refl_by8
80 mbin_interface crc64_jones_norm
81 mbin_dispatch_init_clmul crc64_jones_norm, crc64_jones_norm_base, crc64_jones_norm_by8
82
83 ;;; func core, ver, snum
84 slversion crc64_ecma_refl, 00, 00, 001b
85 slversion crc64_ecma_norm, 00, 00, 0018
86 slversion crc64_iso_refl, 00, 00, 0021
87 slversion crc64_iso_norm, 00, 00, 001e
88 slversion crc64_jones_refl, 00, 00, 0027
89 slversion crc64_jones_norm, 00, 00, 0024