< prev index next >
src/cpu/ppc/vm/c1_LIRAssembler_ppc.cpp
Print this page
rev 12672 : [mq]: crc32_ppc.patch
*** 1,8 ****
/*
! * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 2012, 2016 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,8 ----
/*
! * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 2012, 2017, SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 3175,3185 ****
Register res = op->result_opr()->as_register();
assert_different_registers(val, crc, res);
__ load_const_optimized(res, StubRoutines::crc_table_addr(), R0);
! __ nand(crc, crc, crc); // ~crc
! __ update_byte_crc32(crc, val, res);
! __ nand(res, crc, crc); // ~crc
}
#undef __
--- 3175,3184 ----
Register res = op->result_opr()->as_register();
assert_different_registers(val, crc, res);
__ load_const_optimized(res, StubRoutines::crc_table_addr(), R0);
! __ kernel_crc32_singleByteReg(crc, val, res, true);
! __ mr(res, crc);
}
#undef __
< prev index next >