< prev index next >
src/cpu/ppc/vm/stubRoutines_ppc.hpp
Print this page
rev 11916 : 8164920: ppc: enhancement of CRC32 intrinsic
*** 43,64 ****
--- 43,72 ----
#ifdef CRC32_BYFOUR
#define CRC32_TABLES 8
#else
#define CRC32_TABLES 1
#endif
+ #define CRC32_CONSTANTS_SIZE 1084
+ #define CRC32_BARRET_CONSTANTS 10
class ppc64 {
friend class StubGenerator;
private:
// CRC32 Intrinsics.
static juint _crc_table[CRC32_TABLES][CRC32_COLUMN_SIZE];
+ static juint* _constants;
+ static juint* _barret_constants;
public:
// CRC32 Intrinsics.
static void generate_load_crc_table_addr(MacroAssembler* masm, Register table);
+ static void generate_load_crc_constants_addr(MacroAssembler* masm, Register table);
+ static void generate_load_crc_barret_constants_addr(MacroAssembler* masm, Register table);
+ static juint* generate_crc_constants();
+ static juint* generate_crc_barret_constants();
};
#endif // CPU_PPC_VM_STUBROUTINES_PPC_HPP
< prev index next >