mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8281146: Replace StringCoding.hasNegatives with countPositives
Co-authored-by: Lutz Schmidt <lucy@openjdk.org> Co-authored-by: Martin Doerr <mdoerr@openjdk.org> Reviewed-by: kvn, lucy, rriggs
This commit is contained in:
parent
249d553659
commit
beedae1141
36 changed files with 552 additions and 335 deletions
|
@ -32,6 +32,11 @@ public class Helper {
|
|||
return StringCoding.hasNegatives(ba, off, len);
|
||||
}
|
||||
|
||||
@jdk.internal.vm.annotation.ForceInline
|
||||
public static int StringCodingCountPositives(byte[] ba, int off, int len) {
|
||||
return StringCoding.countPositives(ba, off, len);
|
||||
}
|
||||
|
||||
@jdk.internal.vm.annotation.ForceInline
|
||||
public static byte[] compressByte(byte[] src, int srcOff, int dstSize, int dstOff, int len) {
|
||||
byte[] dst = new byte[dstSize];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue