1.1 --- a/src/cpu/ppc/vm/stubRoutines_ppc_64.hpp Mon Sep 24 17:18:38 2018 -0400 1.2 +++ b/src/cpu/ppc/vm/stubRoutines_ppc_64.hpp Thu Sep 22 12:17:24 2016 +0200 1.3 @@ -45,6 +45,8 @@ 1.4 #else 1.5 #define CRC32_TABLES 1 1.6 #endif 1.7 +#define CRC32_CONSTANTS_SIZE 1084 1.8 +#define CRC32_BARRET_CONSTANTS 10 1.9 1.10 class ppc64 { 1.11 friend class StubGenerator; 1.12 @@ -53,11 +55,17 @@ 1.13 1.14 // CRC32 Intrinsics. 1.15 static juint _crc_table[CRC32_TABLES][CRC32_COLUMN_SIZE]; 1.16 + static juint* _constants; 1.17 + static juint* _barret_constants; 1.18 1.19 public: 1.20 1.21 // CRC32 Intrinsics. 1.22 static void generate_load_crc_table_addr(MacroAssembler* masm, Register table); 1.23 + static void generate_load_crc_constants_addr(MacroAssembler* masm, Register table); 1.24 + static void generate_load_crc_barret_constants_addr(MacroAssembler* masm, Register table); 1.25 + static juint* generate_crc_constants(); 1.26 + static juint* generate_crc_barret_constants(); 1.27 1.28 }; 1.29