Thank you! Wonderful. This is probably the BCD Assist that is mentioned in https://www.websphereusergroup.co.uk/wug/presentations/40/Whats_new_In_IBM_Java_8.pdf .
René. > On 23 Mar 2023, at 03:29, Andrew Rowley <and...@blackhillsoftware.com> wrote: > > On 23/03/2023 11:39 am, David Crayford wrote: >> FYI, the OpenJ9 JIT can implement JIT intrinsics to generate native decimal >> instructions when running on z/OS. IBM have open source OpenJ9 and OMR so >> you can snoop around the code >> https://github.com/eclipse-openj9/openj9/blob/master/jcl/src/openj9.dataaccess/share/classes/com/ibm/dataaccess/DecimalData.java > > More interesting is: > https://github.com/eclipse-openj9/openj9/blob/master/jcl/src/java.base/share/classes/com/ibm/jit/BigDecimalExtension.java > > since that implies DFP is used for BigDecimal calculations. > > However, BigDecimal is immutable so by specification calculations create a > new object for every intermediate value. Hopefully the compiler can optimize > away most of them, if you require maximum performance. > > -- > Andrew Rowley > Black Hill Software > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN