Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Copyright © <2010>, Intel Corporation.
  3.  *
  4.  * This program is licensed under the terms and conditions of the
  5.  * Eclipse Public License (EPL), version 1.0.  The full text of the EPL is at
  6.  * http://www.opensource.org/licenses/eclipse-1.0.php.
  7.  *
  8.  */
  9. //      Kernel name: RoundShift_C_4x4.asm
  10. //
  11. //      Do (...+32)>>6 to 4x4 (NV12 8x4) interpolated chrominance data
  12. //
  13.  
  14.  
  15. //#if !defined(__RoundShift_C_4x4__)            // Make sure this is only included once
  16. //#define __RoundShift_C_4x4__
  17.  
  18.  
  19.         // TODO: Optimize using instruction compression
  20.         add (16)        acc0<1>:w                                       r[pRESULT,0]<16;16,1>:w                 32:w
  21.         add (16)        acc1<1>:w                                       r[pRESULT,nGRFWIB]<16;16,1>:w   32:w
  22.         asr.sat (16) r[pRESULT,0]<2>:ub                 acc0<16;16,1>:w                                 6:w
  23.         asr.sat (16) r[pRESULT,nGRFWIB]<2>:ub   acc1<16;16,1>:w                                 6:w
  24.        
  25.  
  26. //#endif        // !defined(__RoundShift_C_4x4__)
  27.