JDK-8284503 : Java API definition and Compiler IR changes for newly proposed operation in VectorAPI - incubation 4
  • Type: Enhancement
  • Component: core-libs
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2022-04-07
  • Updated: 2022-04-26
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
- Add Java APIs definitions for following newly proposed operations 	
- Extend existing Vector JTREG suite to cover new operations.	
- Create of new JMH micros for each newly implemented API.   	

1) VectorOperations.BIT_COUNT:
   - counting the number of one-bits
2) VectorOperations.LEADING_ZEROS_COUNT:
  - counting the number of leading zero bits
3) VectorOperations.TRAILING_ZEROS_COUNT:
  - counting the number of trailing zero bits
4) VectorOperations.REVERSE:
  - reversing the order of bits
5) VectorOperations.REVERSE_BYTES:
 - reversing the order of bytes
6) compress and expand bits
 - Semantics are based on Hacker's Delight section 7-4 Compress, or Generalized Extract.