mirror of
https://github.com/intel/isa-l.git
synced 2025-09-06 14:20:54 +02:00

This makes it easier to compare the constants used for crc/crc64_*_by8.asm, crc/crc64_*_by16_10.asm, and crc/aarch64/crc64_*_pmull.h Note that this revealed some discrepancies: ecma_refl: br_high != rk8 (92d8af2baf0e1e85 vs 92d8af2baf0e1e84) iso_refl: br_high != rk8 (b000000000000001 vs b000000000000000) jones_refl: br_high != rk8 (2b5926535897936b vs 2b5926535897936a) but they should be innocuous. Signed-off-by: Tim Burke <tim.burke@gmail.com>
76 lines
2.4 KiB
NASM
76 lines
2.4 KiB
NASM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; Copyright(c) 2011-2016 Intel Corporation All rights reserved.
|
|
;
|
|
; Redistribution and use in source and binary forms, with or without
|
|
; modification, are permitted provided that the following conditions
|
|
; are met:
|
|
; * Redistributions of source code must retain the above copyright
|
|
; notice, this list of conditions and the following disclaimer.
|
|
; * Redistributions in binary form must reproduce the above copyright
|
|
; notice, this list of conditions and the following disclaimer in
|
|
; the documentation and/or other materials provided with the
|
|
; distribution.
|
|
; * Neither the name of Intel Corporation nor the names of its
|
|
; contributors may be used to endorse or promote products derived
|
|
; from this software without specific prior written permission.
|
|
;
|
|
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
%define FUNCTION_NAME crc64_ecma_norm_by8
|
|
%define USE_CONSTS
|
|
%macro INCLUDE_CONSTS 0
|
|
rk1 :
|
|
DQ 0x05f5c3c7eb52fab6
|
|
rk2 :
|
|
DQ 0x4eb938a7d257740e
|
|
rk3 :
|
|
DQ 0x05cf79dea9ac37d6
|
|
rk4 :
|
|
DQ 0x001067e571d7d5c2
|
|
rk5 :
|
|
DQ 0x05f5c3c7eb52fab6
|
|
rk6 :
|
|
DQ 0x0000000000000000
|
|
rk7 :
|
|
DQ 0x578d29d06cc4f872
|
|
rk8 :
|
|
DQ 0x42f0e1eba9ea3693
|
|
rk9 :
|
|
DQ 0xe464f4df5fb60ac1
|
|
rk10 :
|
|
DQ 0xb649c5b35a759cf2
|
|
rk11 :
|
|
DQ 0x9af04e1eff82d0dd
|
|
rk12 :
|
|
DQ 0x6e82e609297f8fe8
|
|
rk13 :
|
|
DQ 0x097c516e98bd2e73
|
|
rk14 :
|
|
DQ 0x0b76477b31e22e7b
|
|
rk15 :
|
|
DQ 0x5f6843ca540df020
|
|
rk16 :
|
|
DQ 0xddf4b6981205b83f
|
|
rk17 :
|
|
DQ 0x54819d8713758b2c
|
|
rk18 :
|
|
DQ 0x4a6b90073eb0af5a
|
|
rk19 :
|
|
DQ 0x571bee0a227ef92b
|
|
rk20 :
|
|
DQ 0x44bef2a201b5200c
|
|
%endm
|
|
|
|
%include "crc64_iso_norm_by8.asm"
|