mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6946040: add intrinsic for short and char reverseBytes
Reviewed-by: never, twisti
This commit is contained in:
parent
166ea7f01c
commit
cd48f31efe
13 changed files with 495 additions and 78 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 1997-2010 Sun Microsystems, Inc. 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
|
||||
|
@ -357,6 +357,8 @@
|
|||
template(void_double_signature, "()D") \
|
||||
template(int_void_signature, "(I)V") \
|
||||
template(int_int_signature, "(I)I") \
|
||||
template(char_char_signature, "(C)C") \
|
||||
template(short_short_signature, "(S)S") \
|
||||
template(int_bool_signature, "(I)Z") \
|
||||
template(float_int_signature, "(F)I") \
|
||||
template(double_long_signature, "(D)J") \
|
||||
|
@ -584,6 +586,10 @@
|
|||
do_intrinsic(_reverseBytes_i, java_lang_Integer, reverseBytes_name, int_int_signature, F_S) \
|
||||
do_name( reverseBytes_name, "reverseBytes") \
|
||||
do_intrinsic(_reverseBytes_l, java_lang_Long, reverseBytes_name, long_long_signature, F_S) \
|
||||
/* (symbol reverseBytes_name defined above) */ \
|
||||
do_intrinsic(_reverseBytes_c, java_lang_Character, reverseBytes_name, char_char_signature, F_S) \
|
||||
/* (symbol reverseBytes_name defined above) */ \
|
||||
do_intrinsic(_reverseBytes_s, java_lang_Short, reverseBytes_name, short_short_signature, F_S) \
|
||||
/* (symbol reverseBytes_name defined above) */ \
|
||||
\
|
||||
do_intrinsic(_identityHashCode, java_lang_System, identityHashCode_name, object_int_signature, F_S) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue