Home | History | Annotate | Download | only in src_gcc
      1 /*
      2  * Copyright (C) 2007-2008 ARM Limited
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  *
     16  */
     17 /*
     18  *
     19  */
     20 
     21     .eabi_attribute 24, 1
     22     .eabi_attribute 25, 1
     23 
     24     .arm
     25     .fpu neon
     26     .text
     27 
     28     .global armVCM4P10_InterpolateLuma_HorDiagCopy_unsafe
     29 armVCM4P10_InterpolateLuma_HorDiagCopy_unsafe:
     30     PUSH     {r4-r6,lr}
     31     MOV      lr,#4
     32     LDR      r6, =0xfe00fe0
     33     LDR      r12, =0xff00ff
     34 LoopStart1:
     35     LDR      r11,[r0,#0xc]
     36     LDR      r10,[r0,#8]
     37     LDR      r5,[r0,#4]
     38     LDR      r4,[r0],r1
     39     UQSUB16  r11,r11,r6
     40     UQSUB16  r10,r10,r6
     41     UQSUB16  r5,r5,r6
     42     UQSUB16  r4,r4,r6
     43     USAT16   r11,#13,r11
     44     USAT16   r10,#13,r10
     45     USAT16   r5,#13,r5
     46     USAT16   r4,#13,r4
     47     AND      r11,r12,r11,LSR #5
     48     AND      r10,r12,r10,LSR #5
     49     AND      r5,r12,r5,LSR #5
     50     AND      r4,r12,r4,LSR #5
     51     ORR      r11,r10,r11,LSL #8
     52     ORR      r10,r4,r5,LSL #8
     53     SUBS     lr,lr,#1
     54     STRD     r10,r11,[r7],#8
     55     BGT      LoopStart1
     56     SUB      r0,r7,#0x20
     57     MOV      r1,#8
     58     POP      {r4-r6,pc}
     59 
     60     .global armVCM4P10_InterpolateLuma_VerDiagCopy_unsafe
     61 armVCM4P10_InterpolateLuma_VerDiagCopy_unsafe:
     62     PUSH     {r4-r6,lr}
     63     LDR      r6, =0xfe00fe0
     64     LDR      r12, =0xff00ff
     65     MOV      lr,#2
     66 LoopStart:
     67     LDR      r11,[r0,#0xc]
     68     LDR      r10,[r0,#8]
     69     LDR      r5,[r0,#4]
     70     LDR      r4,[r0],r1
     71     UQSUB16  r11,r11,r6
     72     UQSUB16  r10,r10,r6
     73     UQSUB16  r5,r5,r6
     74     UQSUB16  r4,r4,r6
     75     USAT16   r11,#13,r11
     76     USAT16   r10,#13,r10
     77     USAT16   r5,#13,r5
     78     USAT16   r4,#13,r4
     79     AND      r11,r12,r11,LSR #5
     80     AND      r10,r12,r10,LSR #5
     81     AND      r5,r12,r5,LSR #5
     82     AND      r4,r12,r4,LSR #5
     83     ORR      r11,r10,r11,LSL #8
     84     ORR      r10,r4,r5,LSL #8
     85     PKHBT    r4,r10,r11,LSL #16
     86     STR      r4,[r7],#8
     87     PKHTB    r5,r11,r10,ASR #16
     88     STR      r5,[r7],#-4
     89     LDR      r11,[r0,#0xc]
     90     LDR      r10,[r0,#8]
     91     LDR      r5,[r0,#4]
     92     LDR      r4,[r0],r1
     93     UQSUB16  r11,r11,r6
     94     UQSUB16  r10,r10,r6
     95     UQSUB16  r5,r5,r6
     96     UQSUB16  r4,r4,r6
     97     USAT16   r11,#13,r11
     98     USAT16   r10,#13,r10
     99     USAT16   r5,#13,r5
    100     USAT16   r4,#13,r4
    101     AND      r11,r12,r11,LSR #5
    102     AND      r10,r12,r10,LSR #5
    103     AND      r5,r12,r5,LSR #5
    104     AND      r4,r12,r4,LSR #5
    105     ORR      r11,r10,r11,LSL #8
    106     ORR      r10,r4,r5,LSL #8
    107     PKHBT    r4,r10,r11,LSL #16
    108     SUBS     lr,lr,#1
    109     STR      r4,[r7],#8
    110     PKHTB    r5,r11,r10,ASR #16
    111     STR      r5,[r7],#4
    112     BGT      LoopStart
    113     SUB      r0,r7,#0x18
    114     MOV      r1,#4
    115     POP      {r4-r6,pc}
    116 
    117     .end
    118 
    119